{# begin {templatelocation} #}

<form action="{site_admin_url}/block.php" method="post" id="admin-blockeditor" class="compact">

  <div class="admin_basic">
    <dl class="form_block">
      <dt><label for="admin-blockeditor-title">{lang_blocktitle}</label></dt>
      <dd><input type="text" name="title" value="{block_title}" id="admin-blockeditor-title" class="uk-input uk-form-width-large"{xhtml}></dd>

      <dt><label for="admin-blockeditor-is_enabled">{lang_enabled}</label></dt>
      <dd class="controls_text"><input type="checkbox" name="is_enabled" {is_enabled} id="admin-blockeditor-is_enabled" class="uk-checkbox"{xhtml}></dd>

      <dt><label for="admin-blockeditor-help">{lang_blockhelpurl}</label></dt>
      <dd><input type="text" name="help" value="{block_help}" maxlength="{max_url_length}" id="admin-blockeditor-help" class="uk-input uk-form-width-large" aria-describedby="desc-admin-blockeditor-help"{xhtml}></dd>
      <dd id="desc-admin-blockeditor-help" class="description">{lang_includehttp}<br{xhtml}>
                              {lang_explanation}</dd>

      <dt>{lang_blockname}</dt>
      <dd class="controls_text">{block_name}
        <input type="hidden" name="name" value="{block_name}"{xhtml}></dd>

      <dt><label>{lang_topic}</label></dt>
      <dd class="controls_text">{topic_selection}</dd>

      <dt><label for="admin-blockeditor-onleft">{lang_position}</label></dt>
      <dd><select name="onleft" id="admin-blockeditor-onleft" class="uk-select uk-width-auto">
          <option value="2" {none_selected}>{lang_none}</option>
          <option value="1" {left_selected}>{lang_left}</option>
          <option value="0" {right_selected}>{lang_right}</option>
          {position_options}
        </select>
      </dd>

      <dt><label for="admin-blockeditor-blockorder">{lang_blockorder}</label></dt>
      <dd><input type="text" name="blockorder" value="{block_order}" id="admin-blockeditor-blockorder" class="uk-input uk-form-width-xsmall" aria-describedby="desc-admin-blockeditor-blockorder"{xhtml}>
        <span id="desc-admin-blockeditor-blockorder">0 - 9999</span></dd>

      <dt><label>{lang_device}</label></dt>
      <dd class="controls_text">
        <label><input type="radio" name="device" value="all" id="admin-blockeditor-device-all" class="uk-radio" {for_all}{xhtml}>{lang_all}</label>
        <label><input type="radio" name="device" value="computer" id="admin-blockeditor-device-computer" class="uk-radio"{for_computer}{xhtml}>{lang_for_computer}</label>
        <label><input type="radio" name="device" value="mobile" id="admin-blockeditor-device-mobile" class="uk-radio" {for_mobile}{xhtml}>{lang_for_mobile}</label>
      </dd>
      <dd id="desc-admin-blockeditor-device" class="description">{lang_device_desc}</dd>

      <dt>{lang_blocktype}</dt>
      <dd class="controls_text">gldefault
        <input type="hidden" name="type" value="gldefault"{xhtml}>
      </dd>

      <dt><label for="admin-blockeditor-css-id">{lang_css_id}</label></dt>
      <dd><input type="text" value="{css_id}" name="css_id" id="admin-blockeditor-css-id" class="uk-input uk-form-width-medium" aria-describedby="desc-admin-blockeditor-css-id"{xhtml}></dd>
      <dd id="desc-admin-blockeditor-css-id" class="description">{lang_css_id_desc}</dd>

      <dt><label for="admin-blockeditor-css-classes">{lang_css_classes}</label></dt>
      <dd><input type="text" value="{css_classes}" name="css_classes" id="admin-blockeditor-css-classes" class="uk-input uk-form-width-large" aria-describedby="desc-admin-blockeditor-css-classes"{xhtml}></dd>
      <dd id="desc-admin-blockeditor-css-classes" class="description">{lang_css_classes_desc}</dd>
    </dl>

    <fieldset>
      <legend>{lang_accessrights}</legend>

      <dl class="form_block">
        <dt>{lang_owner}</dt>
        <dd class="controls_text">{owner_name}
          <input type="hidden" name="owner_id" value="{owner_id}"{xhtml}></dd>

        <dt><label for="group_id">{lang_group}</label></dt>
        <dd>{group_dropdown}</dd>

        <dt><label>{lang_permissions}</label></dt>
        <dd>{permissions_editor}</dd>
        <dd class="description">{lang_perm_key}</dd>
        <dd class="description">{permissions_msg}</dd>
      </dl>
    </fieldset>

    <div class="submit">
      <button type="submit" name="mode" value="{lang_save}" class="uk-button uk-button-primary">{lang_save}</button>
      <button type="submit" name="mode" value="{lang_cancel}" class="uk-button uk-button-default">{lang_cancel}</button>
      <input type="hidden" name="bid" value="{block_id}"{xhtml}>
      <input type="hidden" name="{gltoken_name}" value="{gltoken}"{xhtml}>
    </div>
  </div>

</form>

{# end {templatelocation} #}
