Skip to content

Instantly share code, notes, and snippets.

@btn0s
Created September 30, 2016 21:38
Show Gist options
  • Save btn0s/c9ce536c83819db546471b560104f3b5 to your computer and use it in GitHub Desktop.
Save btn0s/c9ce536c83819db546471b560104f3b5 to your computer and use it in GitHub Desktop.
{% set value = (value is null ? field.default : value) %}
{% if exists %}
<div class="form-field grid vertical">
<div class="form-label">
<label>{{ field.label|tu }}</label>
</div>
<div class="form-data form-uploads-wrapper">
<div id="grav-dropzone" class="dropzone"></div>
<span>{{ value|join("\n") }}</span>
</div>
</div>
{% else %}
<div class="form-tab">
<div class="form-field">
<div class="form-label">
<span class="note">
{{ "PLUGIN_ADMIN.CANNOT_ADD_MEDIA_FILES_PAGE_NOT_SAVED"|tu }}
</span>
</div>
</div>
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment