EN · DE · RU · FR · ES

#3161: AbstractEditPage.html

projectforge-wicket/src/main/java/org/projectforge/web/wicket/AbstractEditPage.html Tipo: HTML · Rol: Página · Fuente: projectforge-wicket/src/main/java/org/projectforge/web/wicket/AbstractEditPage.html 67 líneas · 58 código · 2 comentarios · 7 en blanco
Implementación de página Wicket para edición abstracta. Compone paneles, formularios y navegación.

Estructura del código

Componentes Wicket: showDeleteQuestionDialog, tabTitle, form, feedback, flowform, buttons, csrfToken, timeOfLastUpdate, timeOfCreation, historyTable

Código fuente (resumido)

<html lang="es" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
  <wicket:extend>
    <script wicket:id="showDeleteQuestionDialog" type="text/javascript">
        function showDeleteQuestionDialog() {
            return window.confirm("¿Eliminar...?");
        }
    </script>

    <div class="tabbable">
      <ul class="nav nav-tabs">
        <li class="active"><a href="#editform" data-toggle="tab"><span wicket:id="tabTitle">[Editar elemento]</span></a></li>
        <li><a href="#history" data-toggle="tab"><wicket:message key="label.historyOfChanges" /></a></li>
      </ul>
    </div>

    <div class="tab-content">

      <!-- formulario de edición -->
      <div id="editform" class="tab-pane active">
        <form wicket:id="form" autocomplete="off">
          <div wicket:id="feedback"></div>

          <wicket:container wicket:id="flowform">[los campos del formulario]</wicket:container>
          <wicket:child />
          <div class="button_bar">
            <wicket:container wicket:id="buttons">[botones de acción]</wicket:container>
          </div>
          <input type="hidden" wicket:id="csrfToken" />
        </form>
      </div>

      <!-- historial -->
      <div id="history" class="tab-pane">
        <div class="row">
          <div class="span6">
            <fieldset>
              <label><wicket:message key="timeOfLastUpdate" /></label>
              <div>
                <wicket:container wicket:id="timeOfLastUpdate">[08.10.2009 13:27:02]</wicket:container>
              </div>
            </fieldset>
          </div>
          <div class="span6">
            <fieldset>
              <label><wicket:message key="timeOfCreation" /></label>
              <div>
                <wicket:container wicket:id="timeOfCreation">[08.10.2009 13:27:02]</wicket:container>
              </div>
            </fieldset>
          </div>
        </div>
        <table class="dataview" wicket:id="historyTable">
          <tr>
            <td>[tabla de historial]</td>
          </tr>
        </table>
      </div>

      </div>
  </wicket:extend>
</body>
</html>

Historial de Git

94bd583cb PROJECTFORGE-2226 crear TabPanel reutilizable y primer borrador de múltiples pestañas en la página de edición de empleados
9ebb88522 Commit inicial