#40 - generate pdf
This commit is contained in:
		@@ -82,6 +82,28 @@
 | 
			
		||||
          </p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="sm:grid sm:grid-cols-3 py-4 items-center">
 | 
			
		||||
        <label
 | 
			
		||||
          for="position"
 | 
			
		||||
          class="block text-sm font-medium text-gray-700 sm:mt-px"
 | 
			
		||||
        >
 | 
			
		||||
          Stanowisko
 | 
			
		||||
        </label>
 | 
			
		||||
        <div class="mt-1 sm:mt-0 sm:col-span-2">
 | 
			
		||||
          <input
 | 
			
		||||
            id="position"
 | 
			
		||||
            v-model="form.position"
 | 
			
		||||
            class="block w-full max-w-lg shadow-sm rounded-md sm:text-sm"
 | 
			
		||||
            :class="{ 'border-red-300 text-red-900 focus:outline-none focus:ring-red-500 focus:border-red-500': form.errors.position, 'focus:ring-blumilk-500 focus:border-blumilk-500 sm:text-sm border-gray-300': !form.errors.position }"
 | 
			
		||||
          >
 | 
			
		||||
          <p
 | 
			
		||||
            v-if="form.errors.position"
 | 
			
		||||
            class="mt-2 text-sm text-red-600"
 | 
			
		||||
          >
 | 
			
		||||
            {{ form.errors.position }}
 | 
			
		||||
          </p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <Listbox
 | 
			
		||||
        v-model="form.role"
 | 
			
		||||
        as="div"
 | 
			
		||||
@@ -270,6 +292,7 @@ export default {
 | 
			
		||||
      email: null,
 | 
			
		||||
      employmentForm: props.employmentForms[0],
 | 
			
		||||
      role: props.roles[0],
 | 
			
		||||
      position: null,
 | 
			
		||||
      employmentDate: null,
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -82,6 +82,28 @@
 | 
			
		||||
          </p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="sm:grid sm:grid-cols-3 py-4 items-center">
 | 
			
		||||
        <label
 | 
			
		||||
          for="position"
 | 
			
		||||
          class="block text-sm font-medium text-gray-700 sm:mt-px"
 | 
			
		||||
        >
 | 
			
		||||
          Stanowisko
 | 
			
		||||
        </label>
 | 
			
		||||
        <div class="mt-1 sm:mt-0 sm:col-span-2">
 | 
			
		||||
          <input
 | 
			
		||||
            id="position"
 | 
			
		||||
            v-model="form.position"
 | 
			
		||||
            class="block w-full max-w-lg shadow-sm rounded-md sm:text-sm"
 | 
			
		||||
            :class="{ 'border-red-300 text-red-900 focus:outline-none focus:ring-red-500 focus:border-red-500': form.errors.position, 'focus:ring-blumilk-500 focus:border-blumilk-500 sm:text-sm border-gray-300': !form.errors.position }"
 | 
			
		||||
          >
 | 
			
		||||
          <p
 | 
			
		||||
            v-if="form.errors.position"
 | 
			
		||||
            class="mt-2 text-sm text-red-600"
 | 
			
		||||
          >
 | 
			
		||||
            {{ form.errors.position }}
 | 
			
		||||
          </p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <Listbox
 | 
			
		||||
        v-model="form.role"
 | 
			
		||||
        as="div"
 | 
			
		||||
@@ -272,6 +294,7 @@ export default {
 | 
			
		||||
      lastName: props.user.lastName,
 | 
			
		||||
      email: props.user.email,
 | 
			
		||||
      role: props.roles.find(role => role.value === props.user.role),
 | 
			
		||||
      position: props.user.position,
 | 
			
		||||
      employmentForm: props.employmentForms.find(form => form.value === props.user.employmentForm),
 | 
			
		||||
      employmentDate: props.user.employmentDate,
 | 
			
		||||
    })
 | 
			
		||||
 
 | 
			
		||||
@@ -49,6 +49,12 @@
 | 
			
		||||
              >
 | 
			
		||||
                Rola
 | 
			
		||||
              </th>
 | 
			
		||||
              <th
 | 
			
		||||
                scope="col"
 | 
			
		||||
                class="px-6 py-3 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider"
 | 
			
		||||
              >
 | 
			
		||||
                Stanowisko
 | 
			
		||||
              </th>
 | 
			
		||||
              <th
 | 
			
		||||
                scope="col"
 | 
			
		||||
                class="px-6 py-3 text-left text-xs font-semibold text-gray-500 uppercase tracking-wider"
 | 
			
		||||
@@ -97,6 +103,9 @@
 | 
			
		||||
              <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
 | 
			
		||||
                {{ user.role }}
 | 
			
		||||
              </td>
 | 
			
		||||
              <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
 | 
			
		||||
                {{ user.position }}
 | 
			
		||||
              </td>
 | 
			
		||||
              <td class="px-4 py-4 whitespace-nowrap text-sm text-gray-500">
 | 
			
		||||
                {{ user.employmentForm }}
 | 
			
		||||
              </td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user