{{ extends "layouts/index_admin" }}
{{ import "layouts/partials/helpers/errors" }}
{{block title()}}{{ if Form.ID > 0 }}{{ T("update_annoucement_panel") }}{{ else }}{{ T("create_annoucement_panel") }}{{ end }}{{end}}
{{ block content_body()}}
<div class="results box">
<h3 id="clients">{{ if Form.ID > 0 }}{{ T("update_annoucement_panel") }}{{ else }}{{ T("create_annoucement_panel") }}{{ end }}</h3>
<form style="text-align:left;padding-left:10px;padding-right:10px;" method="POST" action="{{ if Form.ID > 0}}?id={{ Form.ID }}{{end}}">
<div class="form-group">
<label for="message">{{ T("message")}}</label>
<textarea name="message" id="message" class="form-input up-input" placeholder="{{ T("message")}}" required>{{Form.Message}}</textarea>
{{ yield errors(name="Message")}}
</div>
<label for="delay">{{ T("delay")}} ({{ Form.Delay }} {{ T("days") }})</label>
<input type="text" name="delay" id="delay" class="form-input up-input" placeholder="{{ T("delay")}}">
{{ yield errors(name="Delay")}}
<button type="submit" class="form-input up-input btn-green">{{ T("save_changes")}}</button>
</form>
{{end}}