2019-09-17 23:10:44 +08:00
|
|
|
{% extends 'admin.base' %}
|
|
|
|
|
|
|
|
{% block title %}{{ trans('general.i18n') }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2020-03-28 18:25:12 +08:00
|
|
|
<div class="col-lg-8"><div class="card" id="table"></div></div>
|
2019-09-17 23:10:44 +08:00
|
|
|
<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() }}
|
2020-03-28 18:25:12 +08:00
|
|
|
<div class="container-fluid my-4 px-2">
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-sm-3">{{ trans('admin.i18n.group') }}</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<input type="text" class="form-control" name="group" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row my-3">
|
|
|
|
<div class="col-sm-3">{{ trans('admin.i18n.key') }}</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<input type="text" class="form-control" name="key" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-sm-3">{{ trans('admin.i18n.text') }}</div>
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<input type="text" class="form-control" name="text" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-17 23:10:44 +08:00
|
|
|
</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 %}
|