12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- {{ define "content" }}
- <div class="container">
- {{if .Options.Get "update"}}
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="/offices?{{query "tpl_layout" "base" "tpl_content" "offices"}}">Segreteria</a></li>
- <li class="breadcrumb-item active"><a href="#">Aggiorna la segreteria</a></li>
- </ol>
- </nav>
- {{else}}
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="/offices?{{query "tpl_layout" "base" "tpl_content" "offices"}}">Segreteria</a></li>
- <li class="breadcrumb-item active"><a href="#">Aggiungi</a></li>
- </ol>
- </nav>
- {{end}}
- {{if .Options.Get "update"}}
- <div class="karmen-info-header">
- <div class="row">
- <div class="col-md-8">
- <h1>Aggiorna la segreteria</h1>
- </div>
- </div>
- </div>
-
- {{else}}
- <h1 class="karmen-info-header">Crea nuova segreteria</h1>
- {{end}}
- {{if .Options.Get "update"}}
- <form id="form_offices_add_update" action="/offices/{{.Data.Office.ID}}/update" method="POST" role="form" class="needs-validation">
- {{else}}
- <form id="form_offices_add_update" action="/offices/add/" method="POST" role="form" class="needs-validation">
- {{end}}
- <div class="form-group">
- <label class="control-label" for="office_name">Nome</label>
- <input type="text" name="Name" class="form-control" id="office_name" placeholder="Nome" {{if .Options.Get "update"}} value="{{.Data.Office.Name}}" {{end}} required>
- </div>
- <div class="form-group">
- <label class="control-label" for="office_name">Email</label>
- <input type="text" name="Email" class="form-control" id="office_email" placeholder="Email dell'ufficio" {{if .Options.Get "update"}} value="{{.Data.Office.Email}}" {{end}} required>
- </div>
- <div class="form-group">
- <button type="submit" class="btn btn-primary">Salva</button>
- {{if .Options.Get "update"}}
- <a href="/offices/{{.Data.Office.ID}}?{{query "tpl_layout" "base" "tpl_content" "offices_show"}}" class="btn btn-default">Annulla</a>
- {{else}}
- <a href="/offices?{{query "tpl_layout" "base" "tpl_content" "offices"}}" class="btn btn-default">Annulla</a>
- {{end}}
- </div>
-
- </form>
- </div>
- {{ end }}
|