feat: adds step to define filter in getting started process
This commit is contained in:
20
templates/user/getting_started/filter.html.twig
Normal file
20
templates/user/getting_started/filter.html.twig
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends 'bare.html.twig' %}
|
||||
|
||||
{% block title %}Getting Started — Torsearch{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="flex flex-col bg-orange-500/50 p-4 rounded-lg gap-4 w-full md:w-[420px] border-orange-500 border-2 text-gray-50 animate-fade">
|
||||
<h2 class="text-2xl text-bold text-center text-gray-50">Getting Started</h2>
|
||||
<p class="mb-1">Now let's create your first Filter.</p>
|
||||
{# <p class="mb-2 text-sm">Your filter will be pre-applied to your results, so you're only shown what you want to see. Don't worry, though, you can toggle each filter option afterwards, so you can see the rest of the results.</p>#}
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form.language) }}
|
||||
{{ form_row(form.quality) }}
|
||||
{{ form_row(form.provider) }}
|
||||
{{ form_row(form.resolution) }}
|
||||
{{ form_row(form.codec) }}
|
||||
<button class="submit-button">Save</button>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
69
templates/user/getting_started/register-user.html.twig
Normal file
69
templates/user/getting_started/register-user.html.twig
Normal file
@@ -0,0 +1,69 @@
|
||||
{% extends 'bare.html.twig' %}
|
||||
|
||||
{% block title %}Getting Started — Torsearch{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="flex flex-col bg-orange-500/50 p-4 rounded-lg gap-4 w-full md:w-[420px] border-orange-500 border-2 text-gray-50 animate-fade">
|
||||
<h2 class="text-2xl text-bold text-center text-gray-50">Getting Started</h2>
|
||||
<p class="mb-2">Let's get started by creating your first User.</p>
|
||||
|
||||
{{ form_start(registrationForm) }}
|
||||
|
||||
{### Start Name ###}
|
||||
<label for="name" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.name) }}
|
||||
|
||||
{% if form_errors(registrationForm.name) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold border-2 border-red-600 text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.name) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="text"
|
||||
name="{{ field_name(registrationForm.name) }}"
|
||||
id="{{ field_name(registrationForm.name) }}"
|
||||
value="{{ field_value(registrationForm.name) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
{### Start Email ###}
|
||||
<label for="email" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.email) }}
|
||||
|
||||
{% if form_errors(registrationForm.email) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.email) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="email"
|
||||
name="{{ field_name(registrationForm.email) }}"
|
||||
id="{{ field_name(registrationForm.email) }}"
|
||||
value="{{ field_value(registrationForm.email) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
{### Start Password ###}
|
||||
<label for="password" class="flex flex-col mb-2">
|
||||
{{ field_label(registrationForm.plainPassword) }}
|
||||
|
||||
{% if form_errors(registrationForm.plainPassword) %}
|
||||
<span class="w-full p-1 text-[.775rem] font-bold border-2 border-red-600 text-black bg-red-500/70 rounded-md">
|
||||
{{ form_errors(registrationForm.plainPassword) }}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<input type="password"
|
||||
name="{{ field_name(registrationForm.plainPassword) }}"
|
||||
id="{{ field_name(registrationForm.plainPassword) }}"
|
||||
value="{{ field_value(registrationForm.plainPassword) }}"
|
||||
class="bg-gray-50 text-gray-50 p-1 bg-transparent border-b-2 border-orange-400 mb-3" />
|
||||
</label>
|
||||
{# ################### #}
|
||||
|
||||
<button type="submit" class="bg-green-600/40 px-1.5 py-1 w-full rounded-md text-gray-50 backdrop-filter backdrop-blur-sm border-2 border-green-500 hover:bg-green-700/40">Register</button>
|
||||
{{ form_end(registrationForm) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user