2016-11-06 09:17:22 -06:00
|
|
|
{% extends "./layout/default" %}
|
2015-07-18 16:51:51 -05:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 13:46:52 -06:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute().getName(), attachment) }}
|
2015-07-18 16:51:51 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-07-19 05:21:38 -05:00
|
|
|
<form method="POST" action="{{ route('attachments.update', attachment.id) }}" accept-charset="UTF-8" class="form-horizontal" id="update">
|
2015-07-18 16:51:51 -05:00
|
|
|
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
|
|
|
|
<input type="hidden" name="id" value="{{ attachment.id }}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
|
|
<div class="box box-primary">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'mandatoryFields'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2019-07-16 12:22:14 -05:00
|
|
|
{{ ExpandedForm.staticText('filename',attachment.filename|escape) }}
|
|
|
|
{{ ExpandedForm.staticText('mime',attachment.mime|escape) }}
|
2015-07-18 16:51:51 -05:00
|
|
|
{{ ExpandedForm.staticText('size',attachment.size|filesize) }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'optionalFields'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
2015-07-19 02:37:28 -05:00
|
|
|
{{ ExpandedForm.text('title', attachment.title) }}
|
2018-03-19 09:28:35 -05:00
|
|
|
{{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
|
2015-07-18 16:51:51 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-01-12 11:42:48 -06:00
|
|
|
{# panel for options #}
|
2015-07-18 16:51:51 -05:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'options'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
{{ ExpandedForm.optionsList('update','attachment') }}
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<button type="submit" class="btn pull-right btn-success">
|
2016-09-09 04:19:19 -05:00
|
|
|
{{ 'update_attachment'|_ }}
|
2015-07-18 16:51:51 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|