pp_login.twig (8674B)
1 {{ header }}{{ column_left }} 2 <div id="content"> 3 <div class="page-header"> 4 <div class="container-fluid"> 5 <div class="pull-right"> 6 <button type="submit" form="form-module" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button> 7 <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div> 8 <h1>{{ heading_title }}</h1> 9 <ul class="breadcrumb"> 10 {% for breadcrumb in breadcrumbs %} 11 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 12 {% endfor %} 13 </ul> 14 </div> 15 </div> 16 <div class="container-fluid"> 17 {% if error.error_warning %} 18 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error.error_warning }} 19 <button type="button" class="close" data-dismiss="alert">×</button> 20 </div> 21 {% endif %} 22 <div class="panel panel-default"> 23 <div class="panel-heading"> 24 <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ heading_title }}</h3> 25 </div> 26 <div class="panel-body"> 27 <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-module" class="form-horizontal"> 28 <div class="form-group required"> 29 <label class="col-sm-2 control-label" for="entry-client_id">{{ entry_client_id }}</label> 30 <div class="col-sm-10"> 31 <input type="text" name="module_pp_login_client_id" value="{{ module_pp_login_client_id }}" placeholder="{{ entry_client_id }}" id="entry-client_id" class="form-control"/> 32 {% if error_client_id %} 33 <div class="text-danger">{{ error_client_id }}</div> 34 {% endif %} 35 </div> 36 </div> 37 <div class="form-group required"> 38 <label class="col-sm-2 control-label" for="entry-secret">{{ entry_secret }}</label> 39 <div class="col-sm-10"> 40 <input type="text" name="module_pp_login_secret" value="{{ module_pp_login_secret }}" placeholder="{{ entry_secret }}" id="entry-secret" class="form-control"/> 41 {% if error_secret %} 42 <div class="text-danger">{{ error_secret }}</div> 43 {% endif %} 44 </div> 45 </div> 46 <div class="form-group"> 47 <label class="col-sm-2 control-label" for="entry-sandbox"><span data-toggle="tooltip" title="{{ help_sandbox }}">{{ entry_sandbox }}</span></label> 48 <div class="col-sm-10"> 49 <select name="module_pp_login_sandbox" id="entry-sandbox" class="form-control"> 50 {% if module_pp_login_sandbox %} 51 <option value="1" selected="selected">{{ text_yes }}</option> 52 <option value="0">{{ text_no }}</option> 53 {% else %} 54 <option value="1">{{ text_yes }}</option> 55 <option value="0" selected="selected">{{ text_no }}</option> 56 {% endif %} 57 </select> 58 </div> 59 </div> 60 <div class="form-group"> 61 <label class="col-sm-2 control-label" for="input-loggin"><span data-toggle="tooltip" title="{{ help_debug_logging }}">{{ entry_debug }}</span></label> 62 <div class="col-sm-10"> 63 <select name="module_pp_login_debug" id="input-logging" class="form-control"> 64 {% if module_pp_login_debug %} 65 <option value="1" selected="selected">{{ text_yes }}</option> 66 <option value="0">{{ text_no }}</option> 67 {% else %} 68 <option value="1">{{ text_yes }}</option> 69 <option value="0" selected="selected">{{ text_no }}</option> 70 {% endif %} 71 </select> 72 </div> 73 </div> 74 <div class="form-group"> 75 <label class="col-sm-2 control-label" for="input-customer-group"><span data-toggle="tooltip" title="{{ help_customer_group }}">{{ entry_customer_group }}</span></label> 76 <div class="col-sm-10"> 77 <select name="module_pp_login_customer_group_id" id="input-customer-group" class="form-control"> 78 {% for customer_group in customer_groups %} 79 {% if customer_group.customer_group_id == module_pp_login_customer_group_id %} 80 <option value="{{ customer_group.customer_group_id }}" selected="selected">{{ customer_group.name }}</option> 81 {% else %} 82 <option value="{{ customer_group.customer_group_id }}">{{ customer_group.name }}</option> 83 {% endif %} 84 {% endfor %} 85 </select> 86 </div> 87 </div> 88 <div class="form-group"> 89 <label class="col-sm-2 control-label" for="input-button_colour">{{ entry_button }}</label> 90 <div class="col-sm-10"> 91 <select name="module_pp_login_button_colour" id="input-button_colour" class="form-control"> 92 {% if module_pp_login_button_colour == 'blue' %} 93 <option value="blue" selected="selected">{{ text_button_blue }}</option> 94 <option value="grey">{{ text_button_grey }}</option> 95 {% else %} 96 <option value="blue">{{ text_button_blue }}</option> 97 <option value="grey" selected="selected">{{ text_button_grey }}</option> 98 {% endif %} 99 </select> 100 </div> 101 </div> 102 <div class="form-group"> 103 <label class="col-sm-2 control-label" for="input-seamless"><span data-toggle="tooltip" title="{{ help_seamless }}">{{ entry_seamless }}</span></label> 104 <div class="col-sm-10"> 105 <select name="module_pp_login_seamless" id="input-logging" class="form-control"> 106 {% if module_pp_login_seamless %} 107 <option value="1" selected="selected">{{ text_yes }}</option> 108 <option value="0">{{ text_no }}</option> 109 {% else %} 110 <option value="1">{{ text_yes }}</option> 111 <option value="0" selected="selected">{{ text_no }}</option> 112 {% endif %} 113 </select> 114 </div> 115 </div> 116 <div class="form-group"> 117 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_locale }}">{{ entry_locale }}</span></label> 118 <div class="col-sm-10"> 119 {% for language in languages %} 120 <div class="input-group"><span class="input-group-addon"><img src="language/{{ language.code }}/{{ language.code }}.png" title="{{ language.name }}" /></span> 121 <select name="module_pp_login_locale[{{ language.language_id }}]" class="form-control"> 122 {% for locale in locales %} 123 {% if pp_login_locale[language.language_id] and pp_login_locale[language.language_id] == locale.value %} 124 <option value="{{ locale.value }}" selected="selected">{{ locale.text }}</option> 125 {% else %} 126 <option value="{{ locale.value }}">{{ locale.text }}</option> 127 {% endif %} 128 {% endfor %} 129 </select> 130 </div> 131 {% endfor %} 132 </div> 133 </div> 134 <div class="form-group"> 135 <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_return_url }}">{{ entry_return_url }}</span></label> 136 <div class="col-sm-10"> 137 <input type="text" readonly id="return-url" value="{{ return_url }}" class="form-control" /> 138 </div> 139 </div> 140 <div class="form-group"> 141 <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label> 142 <div class="col-sm-10"> 143 <select name="module_pp_login_status" id="input-status" class="form-control"> 144 {% if module_pp_login_status %} 145 <option value="1" selected="selected">{{ text_enabled }}</option> 146 <option value="0">{{ text_disabled }}</option> 147 {% else %} 148 <option value="1">{{ text_enabled }}</option> 149 <option value="0" selected="selected">{{ text_disabled }}</option> 150 {% endif %} 151 </select> 152 </div> 153 </div> 154 </form> 155 </div> 156 </div> 157 </div> 158 </div> 159 {{ footer }}