
<form action = 'index.php?module=userfield&event=updateField' method='post' class="form-horizontal form-label-left">
    <input type="hidden" name="save" value="1">
    <input type="hidden" name="id" value="[% $field.userdeffieldid %]">
    <div class='card panel-fcs-border shadow-sm'>
        <div class='card-header'>
            <div class="row">
                <div class="col-sm-6">
                    <div class='fcs-card-title h1'>
                        [% $user->gettext('Feld aktualisieren')%]
                    </div>
                </div>
                <div class="col-sm-6 text-end">
                    <div class="btn-group">
                        <input type="submit" value="[% $user->gettext('Speichern') %]" class="btn btn-outline-primary">
                        <a class='btn btn-outline-primary' href='index.php?module=userfield'>[% $user->gettext('Liste')%] </a> 
                    </div>
                </div>
            </div>
        </div>
        <div class="card-body">
            [% if $error == 1 %]
                <div class="alert alert-primary" role="alert">
                    [% $user->gettext('Das Feld kann momentan nicht erstellt werden') %]
                </div>
            [% /if %]
            <div class='form-group row mb-3'>
                <label class="control-label col-sm-3">
                    [% $user->gettext('Feldname')%] *
                </label>
                <div class="col-sm-9">
                    <input type='text' class='form-control' value="[% $field.fieldname %]" name='FieldName' required>
                </div>
            </div>
            <div class='form-group row mb-3'>
                <label class="control-label col-sm-3">
                    [% $user->gettext('Beschreibung')%]
                </label>
                <div class="col-sm-9">
                    <input type='text' class='form-control' value="[% $field.fielddescription %]" name='FieldDescription'>
                </div>
            </div>
            <div class='form-group row mb-3'>
                <label class="control-label col-sm-3">
                    [% $user->gettext('Als Radioauswahl anzeigen')%]
                </label>
                <div class="col-sm-9">
                    <input type='checkbox' class='' name='ShowAsRadio' [% if $field.showasradio %] checked [% /if %]>
                </div>
            </div>                   
            <div class='form-group row mb-3'>
                <label class="control-label col-sm-3">
                    [% $user->gettext('Aktiv')%]
                </label>
                <div class="col-sm-9">
                    <input type='checkbox' class='' name='FieldActive' [% if $field.fieldactive %] checked [% /if %]>
                </div>
            </div>
             
        </div>
    </div>
</form>
