-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
0f67fe3
commit d7c99f7
Showing
2 changed files
with
39 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,47 @@ | ||
{% load component_tags %} | ||
|
||
<div class="field-component flex bg-gray-100 p-4 h-14 space-x-4 rounded-lg w-full items-center"> | ||
<div class="field-component relative flex bg-gray-100 p-4 h-14 space-x-4 rounded-lg w-full items-center"> | ||
{% if component_type == "input" %} | ||
<input type="file" class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 focus:outline-none" name="{{ name }}"> | ||
{% else %} | ||
{% if icon_name != "" %} | ||
{% component "icon" icon=icon_name icon_type="mini" icon_class="w-6 h-6 flex-shrink-0 text-gray-400" %} | ||
{% endif %} | ||
<input type="{{ component_type }}" class="bg-gray-100 outline-none border-0 w-full ring-0 focus:ring-0" name="{{ name }}" placeholder="{{ placeholder }}" /> | ||
<input type="{{ component_type }}" class="peer bg-gray-100 outline-none border-0 w-full ring-0 focus:ring-0" name="{{ name }}" placeholder="{{ placeholder }}" /> | ||
{% endif %} | ||
{% if name == "password1" and placeholder == "Create password..." %} | ||
<div class="-left-48 absolute invisible peer-focus:visible"> | ||
<div class="w-40 h-40 flex flex-col bg-white text-gray-600 text-xs rounded-xl text-left p-4 border border-light-gray z-50 justify-items-center"> | ||
<p>Password can't be:</p> | ||
<ul class="list-disc pl-2 gap-y-2"> | ||
<li>too similar to other personal information</li> | ||
<li>less than 8 characters </li> | ||
<li>be a commonly used password</li> | ||
<li>entirely numeric</li> | ||
</ul> | ||
</div> | ||
<div class="relative z-30"> | ||
<div class="flex left-full -ml-3 bottom-20 absolute z-0"> | ||
<div class="h-4 w-4 origin-bottom-left rotate-45 transform border border-light-gray bg-white border-b-white border-l-white"></div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if name == "username" and placeholder == "Create username..." %} | ||
<div class="-left-48 absolute invisible peer-focus:visible"> | ||
<div class="w-40 h-36 flex flex-col bg-white text-gray-600 text-xs rounded-xl text-left p-4 border border-light-gray z-50 justify-items-center"> | ||
<ul class="list-disc pl-2 gap-y-2"> | ||
<li>Required</li> | ||
<li>150 characters or fewer</li> | ||
<li>Letters, digits and @/./+/-/_ only.</li> | ||
<li>entirely numeric</li> | ||
</ul> | ||
</div> | ||
<div class="relative z-30"> | ||
<div class="flex left-full -ml-3 bottom-[4.5rem] absolute z-0"> | ||
<div class="h-4 w-4 origin-bottom-left rotate-45 transform border border-light-gray bg-white border-b-white border-l-white"></div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> |
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