Skip to content

Commit

Permalink
Add options for company field (#291)
Browse files Browse the repository at this point in the history
This is a partial fix for #284

----------
__Please confirm the following:__

- [x] I accept and respect the [statuses of Odborová organizace
pracujících v
ICT](https://ictunion.cz/downloads/ictunion-statutes-en.pdf)
- [x] I'm providing all content changes under the [CC BY
4.0](https://creativecommons.org/licenses/by/4.0/) license
  • Loading branch information
ICTGuerrilla committed Nov 7, 2024
1 parent 5dffc68 commit 19c7be9
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions layouts/register/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="register-page-title">{{ .Title }}</h1>
name="email"
type="email"
placeholder="{{ i18n "jane.doe@email.com" }}"
pattern="^.+@(?!.*rws\.com|redhat\.com|moravia\.com|expediagroup.com|microsoft.com|skype.net).*$"
pattern="^.+@(?!.*rws\.com|redhat\.com|moravia\.com|expediagroup.com|microsoft.com|skype.net|infosys.com).*$"
title="{{ i18n "Email Warning" }}"/>
</label>
</div>
Expand All @@ -53,7 +53,11 @@ <h1 class="register-page-title">{{ .Title }}</h1>
<div class="register-form-field">
<label class="register-form-label">{{ i18n "Date of Birth" }}:
{{ $date_format := .Page.Param "dateformat" }}
<input class="register-form-input" name="date_of_birth" type="text" placeholder="{{ i18n "11/08/1986" }}" data-widget="datepicker" />
<input class="register-form-input"
name="date_of_birth"
type="text"
placeholder="{{ i18n "11/08/1986" }}"
data-widget="datepicker" />
</label>
</div>
</fieldset>
Expand Down Expand Up @@ -82,7 +86,11 @@ <h1 class="register-page-title">{{ .Title }}</h1>
<fieldset class="register-register-fieldset">
<div class="register-form-field">
<label class="register-form-label">{{ i18n "Phone Number" }}:
<input class="register-form-input" name="phone_number" type="text" placeholder="+420 777 555 123" data-formatter="phone_number" />
<input class="register-form-input"
name="phone_number"
type="text"
placeholder="+420 777 555 123"
data-formatter="phone_number" />
</label>
</div>
</fieldset>
Expand All @@ -91,7 +99,19 @@ <h1 class="register-page-title">{{ .Title }}</h1>
<div class="register-field-row">
<div class="register-form-field">
<label class="register-form-label">{{ i18n "Company" }}:
<input class="register-form-input" name="company_name" type="text" placeholder="Pied Piper" />
<input class="register-form-input"
name="company_name"
type="text"
placeholder="Pied Piper s.r.o."
list="companies"/>
<datalist id="companies">
<option value="MICROSOFT s.r.o."></option>
<option value="Infosys (Czech Republic) Limited s.r.o."></option>
<option value="Moravia IT s.r.o."></option>
<option value="Red Hat Czech s.r.o."></option>
<option value="Skype Czech Republic s.r.o."></option>
<option value="Expedia Services CZ, s.r.o."></option>
</datalist>
</label>
</div>

Expand Down

0 comments on commit 19c7be9

Please sign in to comment.