voucher.twig (5153B)
1 {{ header }} 2 <div id="account-voucher" class="container"> 3 <ul class="breadcrumb"> 4 {% for breadcrumb in breadcrumbs %} 5 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 6 {% endfor %} 7 </ul> 8 {% if error_warning %} 9 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div> 10 {% endif %} 11 <div class="row">{{ column_left }} 12 {% if column_left and column_right %} 13 {% set class = 'col-sm-6' %} 14 {% elseif column_left or column_right %} 15 {% set class = 'col-sm-9' %} 16 {% else %} 17 {% set class = 'col-sm-12' %} 18 {% endif %} 19 <div id="content" class="{{ class }}">{{ content_top }} 20 <h1>{{ heading_title }}</h1> 21 <p>{{ text_description }}</p> 22 <form action="{{ action }}" method="post" enctype="multipart/form-data" class="form-horizontal"> 23 <div class="form-group required"> 24 <label class="col-sm-2 control-label" for="input-to-name">{{ entry_to_name }}</label> 25 <div class="col-sm-10"> 26 <input type="text" name="to_name" value="{{ to_name }}" id="input-to-name" class="form-control" /> 27 {% if error_to_name %} 28 <div class="text-danger">{{ error_to_name }}</div> 29 {% endif %} 30 </div> 31 </div> 32 <div class="form-group required"> 33 <label class="col-sm-2 control-label" for="input-to-email">{{ entry_to_email }}</label> 34 <div class="col-sm-10"> 35 <input type="text" name="to_email" value="{{ to_email }}" id="input-to-email" class="form-control" /> 36 {% if error_to_email %} 37 <div class="text-danger">{{ error_to_email }}</div> 38 {% endif %} 39 </div> 40 </div> 41 <div class="form-group required"> 42 <label class="col-sm-2 control-label" for="input-from-name">{{ entry_from_name }}</label> 43 <div class="col-sm-10"> 44 <input type="text" name="from_name" value="{{ from_name }}" id="input-from-name" class="form-control" /> 45 {% if error_from_name %} 46 <div class="text-danger">{{ error_from_name }}</div> 47 {% endif %} 48 </div> 49 </div> 50 <div class="form-group required"> 51 <label class="col-sm-2 control-label" for="input-from-email">{{ entry_from_email }}</label> 52 <div class="col-sm-10"> 53 <input type="text" name="from_email" value="{{ from_email }}" id="input-from-email" class="form-control" /> 54 {% if error_from_email %} 55 <div class="text-danger">{{ error_from_email }}</div> 56 {% endif %} 57 </div> 58 </div> 59 <div class="form-group required"> 60 <label class="col-sm-2 control-label">{{ entry_theme }}</label> 61 <div class="col-sm-10"> 62 {% for voucher_theme in voucher_themes %} 63 {% if voucher_theme.voucher_theme_id == voucher_theme_id %} 64 <div class="radio"> 65 <label> 66 <input type="radio" name="voucher_theme_id" value="{{ voucher_theme.voucher_theme_id }}" checked="checked" /> 67 {{ voucher_theme.name }}</label> 68 </div> 69 {% else %} 70 <div class="radio"> 71 <label> 72 <input type="radio" name="voucher_theme_id" value="{{ voucher_theme.voucher_theme_id }}" /> 73 {{ voucher_theme.name }}</label> 74 </div> 75 {% endif %} 76 {% endfor %} 77 {% if error_theme %} 78 <div class="text-danger">{{ error_theme }}</div> 79 {% endif %} 80 </div> 81 </div> 82 <div class="form-group"> 83 <label class="col-sm-2 control-label" for="input-message"><span data-toggle="tooltip" title="{{ help_message }}">{{ entry_message }}</span></label> 84 <div class="col-sm-10"> 85 <textarea name="message" cols="40" rows="5" id="input-message" class="form-control">{{ message }}</textarea> 86 </div> 87 </div> 88 <div class="form-group"> 89 <label class="col-sm-2 control-label" for="input-amount"><span data-toggle="tooltip" title="{{ help_amount }}">{{ entry_amount }}</span></label> 90 <div class="col-sm-10"> 91 <input type="text" name="amount" value="{{ amount }}" id="input-amount" class="form-control" size="5" /> 92 {% if error_amount %} 93 <div class="text-danger">{{ error_amount }}</div> 94 {% endif %} 95 </div> 96 </div> 97 <div class="buttons clearfix"> 98 <div class="pull-right"> {{ text_agree }} 99 {% if agree %} 100 <input type="checkbox" name="agree" value="1" checked="checked" /> 101 {% else %} 102 <input type="checkbox" name="agree" value="1" /> 103 {% endif %} 104 105 <input type="submit" value="{{ button_continue }}" class="btn btn-primary" /> 106 </div> 107 </div> 108 </form> 109 {{ content_bottom }}</div> 110 {{ column_right }}</div> 111 </div> 112 {{ footer }}