blessing-skin-server/resources/views/admin/i18n.twig

67 lines
2.2 KiB
Twig
Raw Normal View History

2019-09-17 23:10:44 +08:00
{% extends 'admin.base' %}
{% block title %}{{ trans('general.i18n') }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-lg-8"><div id="table"></div></div>
<div class="col-lg-4">
<form action="{{ url('/admin/i18n') }}" method="post">
2019-11-24 14:32:58 +08:00
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">{{ trans('admin.i18n.add') }}</h3>
2019-09-17 23:10:44 +08:00
</div>
2019-11-24 14:32:58 +08:00
<div class="card-body p-0">
2019-09-17 23:10:44 +08:00
{% if errors.any %}
2019-11-24 14:32:58 +08:00
<div class="alert alert-danger m-3">
<i class="icon fas fa-exclamation-triangle"></i>
{{ errors.first }}
</div>
2019-09-17 23:10:44 +08:00
{% elseif session_pull('success') %}
2019-11-24 14:32:58 +08:00
<div class="alert alert-success m-3">
<i class="icon fas fa-check"></i>
{{ trans('admin.i18n.added') }}
</div>
2019-09-17 23:10:44 +08:00
{% endif %}
{{ csrf_field() }}
<table class="table">
<tbody>
<tr>
<td>{{ trans('admin.i18n.group') }}</td>
<td>
<input type="text" class="form-control" name="group" required>
</td>
</tr>
<tr>
<td>{{ trans('admin.i18n.key') }}</td>
<td>
<input type="text" class="form-control" name="key" required>
</td>
</tr>
<tr>
<td>{{ trans('admin.i18n.text') }}</td>
<td>
<input type="text" class="form-control" name="text" required>
</td>
</tr>
</tbody>
</table>
</div>
2019-11-24 14:32:58 +08:00
<div class="card-footer">
2019-09-17 23:10:44 +08:00
<input
type="submit"
value="{{ trans('general.submit') }}"
2019-11-24 14:32:58 +08:00
class="btn btn-primary"
2019-09-17 23:10:44 +08:00
>
</div>
</div>
</form>
<div class="callout callout-info">
<a href="https://blessing.netlify.com/ui-text.html" target="_blank">
{{ trans('admin.i18n.tip') }}
</a>
</div>
</div>
</div>
{% endblock %}