Skip to content

Instantly share code, notes, and snippets.

@beinoriusju
Created April 10, 2018 12:10
Show Gist options
  • Save beinoriusju/6079a8075c1185ab6993778d5492709f to your computer and use it in GitHub Desktop.
Save beinoriusju/6079a8075c1185ab6993778d5492709f to your computer and use it in GitHub Desktop.
{{ header }}{{ column_left }}
<div id="content">
<div class="page-header">
<div class="container-fluid">
<div class="pull-right">
<button type="submit" form="form-module" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
<a href="{{ action.cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
<h1>{{ heading_title }}</h1>
<ul class="breadcrumb">
{% for breadcrumb in breadcrumbs %}
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
{% endfor %}
</ul>
</div>
</div>
<div class="container-fluid">
{% if error.permission %}
<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_permission }}
<button type="button" class="close" data-dismiss="alert">&times;</button>
</div>
{% elseif error|length > 0 %}
<div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
<button type="button" class="close" data-dismiss="alert">&times;</button>
</div>
{% endif %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
</div>
<div class="panel-body">
<form action="{{ action.save }}" method="post" enctype="multipart/form-data" id="form-module" class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label" for="input-message">{{ entry_name }}</label>
<div class="col-sm-10">
<input type="text" name="name" value="{{ name }}" placeholder="{{ placeholder_name }}" id="input-message" class="form-control" />
{% if error.name %}
<div class="text-danger">{{ error_name }}</div>
{% endif %}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-message">{{ entry_message }} <span data-toggle="tooltip" title="{{ help_message }}"></span></label>
<div class="col-sm-10">
<input type="text" name="message" value="{{ message }}" placeholder="{{ placeholder_message }}" id="input-message" class="form-control" />
{% if error.message %}
<div class="text-danger">{{ error_message }}</div>
{% endif %}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-redirect-url">{{ entry_redirect_url }}</label>
<div class="col-sm-10">
<input type="text" name="redirect_url" value="{{ redirect_url }}" placeholder="{{ placeholder_redirect_url }}" id="input-redirect-url" class="form-control" />
{% if error.redirect_url %}
<div class="text-danger">{{ error_redirect_url }}</div>
{% endif %}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-age">{{ entry_age }}</label>
<div class="col-sm-10">
<input type="text" name="age" value="{{ age }}" placeholder="{{ placeholder_age }}" id="input-redirect" class="form-control" />
{% if error.age %}
<div class="text-danger">{{ error_age }}</div>
{% endif %}
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
<div class="col-sm-10">
<select name="status" id="input-status" class="form-control">
{% if status %}
<option value="1" selected="selected">{{ text_enabled }}</option>
<option value="0">{{ text_disabled }}</option>
{% else %}
<option value="1">{{ text_enabled }}</option>
<option value="0" selected="selected">{{ text_disabled }}</option>
{% endif %}
</select>
</div>
</div>
<input type="hidden"name="module_id" value="{{ module_id }}" />
</form>
</div>
</div>
</div>
</div>
{{ footer }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment