Created
July 19, 2017 15:09
-
-
Save abdullahseba/fa7dc98c60d25b1d7d21f7cb6566626e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="js-form" id="display" method="{{form.method | default('POST')}}" action="{{site.uri.public}}/{{form.action}}"> | |
{% include "forms/csrf.html.twig" %} | |
<div class="js-form-alerts"> | |
</div> | |
<div class="row"> | |
{% block user_form %} | |
{% if 'name' not in form.fields.hidden %} | |
<div class="col-sm-6"> | |
<div class="form-group"> | |
<label>Name</label> | |
<div class="input-group"> | |
<span class="input-group-addon"><i class="fa fa-edit fa-fw"></i></span> | |
<input type="text" class="form-control" name="name" autocomplete="off" value="{{content.name}}" placeholder="Main entrance ad-board" {% if 'name' in form.fields.disabled %}disabled{% endif %}> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
{% if 'discription' not in form.fields.hidden %} | |
<div class="col-sm-6"> | |
<div class="form-group"> | |
<label>Discription</label> | |
<div class="input-group"> | |
<span class="input-group-addon"><i class="fa fa-edit fa-fw"></i></span> | |
<input type="text" class="form-control" name="discription" autocomplete="off" value="{{content.discription}}" placeholder="Plays a cycles of events..." {% if 'discription' in form.fields.disabled %}disabled{% endif %}> | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
{% if 'contentTemplates' not in form.fields.hidden %} | |
<div class="col-sm-6"> | |
<div class="form-group"> | |
<label>Template</label> | |
<div class="input-group"> | |
<span class="input-group-addon"><i class="fa fa-list-alt fa-fw"></i></span> | |
{% if 'contentTemplates' in form.fields.disabled %} | |
<input type="text" class="form-control" name="content_template_id" value="{{content.contentTemplates.name}}" disabled> | |
{% else %} | |
<select id="input-content_template_id" class="form-control js-select2" name="content_template_id"> | |
{% for content_template in content_templates %} | |
<option value="{{content_template.id}}" {% if (content_template.id == content.content_template_id) %}selected{% endif %}>{{content_template.name}}</option> | |
{% endfor %} | |
</select> | |
{% endif %} | |
</div> | |
</div> | |
</div> | |
{% endif %} | |
{% endblock %} | |
</div><br> | |
<div class="row"> | |
<div class="col-xs-8 col-sm-4"> | |
<button type="submit" class="btn btn-block btn-lg btn-success">{{form.submit_text}}</button> | |
</div> | |
<div class="col-xs-4 col-sm-3 pull-right"> | |
<button type="button" class="btn btn-block btn-lg btn-link" data-dismiss="modal">{{translate('CANCEL')}}</button> | |
</div> | |
</div> | |
</form> | |
<!-- Include validation rules --> | |
<script> | |
{% include "pages/partials/page.js.twig" %} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment