-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3522a0
commit bf34f02
Showing
6 changed files
with
137 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
payroll/migrations/0010_alter_vacancy_appointee_name_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by Django 4.2.16 on 2024-11-18 12:07 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("payroll", "0009_remove_vacancy_programme_switch_vacancy"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="vacancy", | ||
name="appointee_name", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Only letters, spaces, - and ' are allowed", | ||
regex="^[a-zA-Z '-]*$", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="vacancy", | ||
name="hiring_manager", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Only letters, spaces, - and ' are allowed", | ||
regex="^[a-zA-Z '-]*$", | ||
) | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="vacancy", | ||
name="hr_ref", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
validators=[ | ||
django.core.validators.RegexValidator( | ||
message="Only letters, spaces, - and ' are allowed", | ||
regex="^[a-zA-Z '-]*$", | ||
) | ||
], | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% if form.errors %} | ||
<div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" tabindex="-1" data-module="govuk-error-summary"> | ||
<h2 class="govuk-error-summary__title" id="error-summary-title"> | ||
There is a problem | ||
</h2> | ||
<div class="govuk-error-summary__body"> | ||
<ul class="govuk-list govuk-error-summary__list"> | ||
{% for field in form %} | ||
{% if field.errors %} | ||
{% for error in field.errors %} | ||
<li> | ||
<a href="#{{ field.id_for_label }}">{{ field.label }} - {{ error }}</a> | ||
</li> | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% for error in form.non_field_errors %} | ||
<li> | ||
<a href="#">{{ error }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} |
File renamed without changes.