Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

120 строки
5.9 KiB

  1. {% if data.user is defined %}
  2. {% set user = data.user %}
  3. {% else %}
  4. {% set user = {
  5. id: "-1",
  6. email: "",
  7. firstname: "",
  8. lastname: "",
  9. phoneNo: "",
  10. maxCatalogues: "3",
  11. company: "",
  12. department: "",
  13. occupation: "",
  14. industry: "",
  15. organisationUnit: "",
  16. invoiceRecipient: "",
  17. invoiceDepartment: "",
  18. invoiceStreet: "",
  19. invoiceZip: "",
  20. invoiceCity: "",
  21. orderNo: "",
  22. costCenter: "",
  23. active: false,
  24. validUntilDate: dateInThreeYears
  25. } %}
  26. {% endif %}
  27. <form method="post" class="form">
  28. <div class="form--row">
  29. <div class="form--wrapper mandatory">
  30. <label for="inputEmail{{ user.id }}">E-Mail Adresse *</label>
  31. <input type="email" value="{{ user.email }}" name="email" id="inputEmail{{ user.id }}" required />
  32. </div>
  33. <div class="form--wrapper mandatory">
  34. <label for="inputFirstname{{ user.id }}">Vorname *</label>
  35. <input type="text" value="{{ user.firstname }}" name="firstname" id="inputFirstname{{ user.id }}" required />
  36. </div>
  37. <div class="form--wrapper mandatory">
  38. <label for="inputLastname{{ user.id }}">Nachname *</label>
  39. <input type="text" value="{{ user.lastname }}" name="lastname" id="inputLastname{{ user.id }}" required />
  40. </div>
  41. <div class="form--wrapper">
  42. <label for="inputPhonenumber{{ user.id }}">Telefonnummer</label>
  43. <input type="text" value="{{ user.phoneNo }}" name="phoneNo" id="inputPhonenumber{{ user.id }}" />
  44. </div>
  45. <div class="form--wrapper mandatory">
  46. <label for="inputMaxCatalogues{{ user.id }}">Max. Anzahl Durchgänge *</label>
  47. <input type="number" step="1" value="{{ user.maxWorksheets }}" name="maxCatalogues" id="inputMaxCatalogues{{ user.id }}" required />
  48. </div>
  49. <div class="form--wrapper">
  50. <label for="inputValidUntilDate{{ user.id }}">Lizenz gültig bis</label>
  51. <input type="date" value="{% if user.validUntilDate is not null %}{{ user.validUntilDate | date('Y-m-d') }}{% endif %}" name="validUntilDate" id="inputValidUntilDate{{ user.id }}" />
  52. </div>
  53. </div>
  54. <div class="form--row">
  55. <div class="form--wrapper">
  56. <label for="inputCompany{{ user.id }}">Firma</label>
  57. <input type="text" value="{{ user.company }}" name="company" id="inputCompany{{ user.id }}" />
  58. </div>
  59. <div class="form--wrapper">
  60. <label for="inputDepartment{{ user.id }}">Abteilung</label>
  61. <input type="text" value="{{ user.department }}" name="department" id="inputDepartment{{ user.id }}" />
  62. </div>
  63. <div class="form--wrapper">
  64. <label for="inputOccupation{{ user.id }}">Tätigkeitsbezeichnung</label>
  65. <input type="text" value="{{ user.occupation }}" name="occupation" id="inputOccupation{{ user.id }}" />
  66. </div>
  67. <div class="form--wrapper">
  68. <label for="inputIndustry{{ user.id }}">Branche/ Bereich</label>
  69. <input type="text" value="{{ user.industry }}" name="industry" id="inputIndustry{{ user.id }}" />
  70. </div>
  71. <div class="form--wrapper">
  72. <label for="inputOrganisationunit{{ user.id }}">vorhandene OE</label>
  73. <input type="text" value="{{ user.organisationUnit }}" name="organisationUnit" id="inputOrganisationunit{{ user.id }}" />
  74. </div>
  75. </div>
  76. <div class="form--row">
  77. <div class="form--wrapper">
  78. <label for="inputInvoiceRecipient{{ user.id }}">Rechnungsempfänger</label>
  79. <input type="text" value="{{ user.invoiceRecipient }}" name="invoiceRecipient" id="inputInvoiceRecipient{{ user.id }}" />
  80. </div>
  81. <div class="form--wrapper">
  82. <label for="inputInvoiceDepartment{{ user.id }}">Rechnung: Abteilung</label>
  83. <input type="text" value="{{ user.invoiceDepartment }}" name="invoiceDepartment" id="inputInvoiceDepartment{{ user.id }}" />
  84. </div>
  85. <div class="form--wrapper">
  86. <label for="inputInvoiceStreet{{ user.id }}">Rechnung: Anschrift (Str./Postfach)</label>
  87. <input type="text" value="{{ user.invoiceStreet }}" name="invoiceStreet" id="inputInvoiceStreet{{ user.id }}" />
  88. </div>
  89. <div class="form--wrapper">
  90. <label for="inputInvoiceZip{{ user.id }}">Rechnung: PLZ</label>
  91. <input type="text" value="{{ user.invoiceZip }}" name="invoiceZip" id="inputInvoiceZip{{ user.id }}" />
  92. </div>
  93. <div class="form--wrapper">
  94. <label for="inputInvoiceCity{{ user.id }}">Rechnung: Ort</label>
  95. <input type="text" value="{{ user.invoiceCity }}" name="invoiceCity" id="inputInvoiceCity{{ user.id }}" />
  96. </div>
  97. </div>
  98. <div class="form--row">
  99. <div class="form--wrapper">
  100. <label for="inputOrderNo{{ user.id }}">Bestellnummer</label>
  101. <input type="text" value="{{ user.orderNo }}" name="orderNo" id="inputOrderNo{{ user.id }}" />
  102. </div>
  103. <div class="form--wrapper">
  104. <label for="inputCostCenter{{ user.id }}">Kostenstelle</label>
  105. <input type="text" value="{{ user.costCenter }}" name="costCenter" id="inputCostCenter{{ user.id }}" />
  106. </div>
  107. <div class="form--wrapper"></div>
  108. <div class="form--wrapper"></div>
  109. <div class="form--wrapper mandatory">
  110. <label for="inputActive{{ user.id }}">User aktiv</label>
  111. <input type="checkbox" name="active" id="inputActive{{ user.id }}" {% if user.active %}checked{% endif%} />
  112. </div>
  113. </div>
  114. <div class="form--row">
  115. {% if data.user is defined %}
  116. <input type="hidden" name="id" value="{{ user.id }}" />
  117. {% endif %}
  118. <button class="btn" data-js="listing--details">User speichern</button>
  119. </div>
  120. </form>