<form action="index.php?module=ticket&class=snippets&event=SaveSnippetRubric" method="post" name="hm" onsubmit="return false" id="hm" enctype="multipart/form-data" style="margin:0;padding:0;">

    [% if $SnippetRubric.SnippetRubricID > 0%]
        <input type="hidden" name="SnippetRubricID" id="SnippetRubricID" value="[% $SnippetRubric.SnippetRubricID %]" />
    [% /if %]


    <div class="card panel-fcs-border shadow-sm">
        <div class="card-header">
            <h2 class="card-title-fcs">[% $user->gettext('Textbausteine') %]</h2>
        </div>

        <div class="card-body">
            <div class="col-lg-6 offset-md-3">
                <div class="card panel-info shadow-sm rounded">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-lg-6 text-left" >
                                <h3 class="card-title text-left" style="font-size: 24px; display:inline">[% if $SnippetRubric.SnippetRubricID > 0 %][% $user->gettext('Rubrik bearbeiten') %][% else %][% $user->gettext('Rubrik hinzuf&uuml;gen') %][% /if %]</h3> 
                            </div>
                            <div class="col-lg-6 text-end" >
                                <div class="btn-group">                                    
                                    <input type="button" id="btnSave" class="btn btn-outline-success" onclick="submitForm();" value="[% $user->gettext('Speichern') %]" />                                                            
                                    <input type="button" id="btnCancel" class="btn btn-outline-secondary" onclick="javascript:history.back()" value="[% $user->gettext('Zur&uuml;ck') %]" />
                                </div>                                
                            </div>
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="col-md-12">
                            <div class="form-group row mb-3">
                                <label for="">[% $user->gettext('Rubriktitel') %]</label>
                                <input type="text" class="form-control" name="RubricTitle" id="RubricTitle" value="[% $SnippetRubric.Name %]" maxlength="255" />
                            </div>

                            <div class="form-group row mb-3">
                                <label for="">[% $user->gettext('Beschreibung') %]</label>
                                <input type="text" class="form-control" name="RubricDescription" id="RubricDescription" value="[% $SnippetRubric.Description %]" maxlength="255" />
                            </div>                            
                        </div>
                    </div>    
                </div>                            
            </div>
        </div>
    </div>

</form>
