Skip to content

Commit

Permalink
Fix URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jan 27, 2024
1 parent 1e38552 commit 3cbad56
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion backend/redirectioneaza/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
path(
"verify/<str:verification_type>/<int:user_id>-<uuid:signup_token>/",
VerificationHandler.as_view(),
name="verification/",
name="verification",
),
path("password/", SetPasswordHandler.as_view()),
# my account
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/v1/admin2/accounts.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<td>{{ "{0}/{1}/{2}".format(user.date_joined.day, user.date_joined.month, user.date_joined.year) }}</td>
<td class="{{ 'success' if user.ngo }}">
{% if user.ngo %}
<a href="/{{ user.ngo.slug }}" target="_blank">da</a>
<a href="/{{ user.ngo.slug }}/" target="_blank">da</a>
{% else %}
nu
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/v1/admin2/campaign.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
<form class="form-horizontal" action="/admin/campanii" role="form" method="post">
<form class="form-horizontal" action="/admin/campanii/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Campanie nouă</legend>
Expand Down
10 changes: 5 additions & 5 deletions backend/templates/v1/admin2/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/admin">Acasă</a></li>
<li><a href="/admin/organizatii">Organizații</a></li>
<li><a href="/admin/conturi">Conturi</a></li>
<li><a href="/admin/ong-nou">Asociație nouă</a></li>
<li><a href="/admin/">Acasă</a></li>
<li><a href="/admin/organizatii/">Organizații</a></li>
<li><a href="/admin/conturi/">Conturi</a></li>
<li><a href="/admin/ong-nou/">Asociație nouă</a></li>
{# <li><a href="/admin/campanii">Campanie nouă</a></li> #}
</ul>

</div>
</div>
</nav>
</nav>
2 changes: 1 addition & 1 deletion backend/templates/v1/admin2/ngos.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<tr>
<td>{{ loop.index }}</td>
<td>
<a href="/admin/{{ ngo.slug }}">{{ ngo.name }}</a>
<a href="/admin/{{ ngo.slug }}/">{{ ngo.name }}</a>
</td>
<td>
{{ ngo.email or '' }}
Expand Down
4 changes: 2 additions & 2 deletions backend/templates/v1/components/for-ngos.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h3>Reprezinți un ONG?</h3>
<p>Află cum te poate ajuta <strong>redirectioneaza.ro</strong> </p>
<div class="text-center">
<a id="for-ngos" class="btn btn-info btn-lg" href="/ong">Pentru ONG-uri</a>
<a id="for-ngos" class="btn btn-info btn-lg" href="/ong/">Pentru ONG-uri</a>
</div>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion backend/templates/v1/components/ngo-details-form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<form id="ong-details-form" class="form form-horizontal" action="/asociatia" role="form" method="post">
<form id="ong-details-form" class="form form-horizontal" action="/asociatia/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Datele asociației:</legend>
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/v1/components/ngo-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
<div class="media-body">
<h1>
<a href="/{{ ngo.slug }}">
<a href="/{{ ngo.slug }}/">
<span itemprop="name" >{{ ngo.name }}</span>
</a>
</h1>
Expand Down
16 changes: 8 additions & 8 deletions backend/templates/v1/cont-nou.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div id="login-container" class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3">
<form class="form form-horizontal" action="/cont-nou" role="form" method="post">
<form class="form form-horizontal" action="/cont-nou/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Cont nou</legend>
Expand All @@ -32,29 +32,29 @@
</div>
<div class="col-xs-6">
<input class="form-control" type="text" name="prenume" placeholder="Prenume" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="email" name="email" placeholder="Email" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="password" name="parola" placeholder="Parola" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12 checkbox">
<label class="" for="agree">
<input type="checkbox" name="agree" id="agree" required />
Sunt de acord cu <a href="/termeni">Termenii aplicației</a>.
Sunt de acord cu <a href="/termeni/">Termenii aplicației</a>.
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<a href="/login" class="btn btn-link pull-right">Am deja un cont</a>
<a href="/login/" class="btn btn-link pull-right">Am deja un cont</a>
<button type="submit" class="btn btn-primary">Trimite</button>
</div>
</div>
Expand All @@ -64,7 +64,7 @@
</div>

<div class="g-recaptcha" data-sitekey="{{ captcha_public_key }}" data-size="invisible" data-callback="onSubmit"></div>

</div>

{% endblock %}
Expand Down
6 changes: 3 additions & 3 deletions backend/templates/v1/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
© 2023 Code for Romania.<br> Organizație neguvernamentală independentă, neafiliată politic și apolitică.
</p>
<ul class="list-unstyled list-inline text-muted footer-links">
<li><a class="text-muted" href="/termeni">Termeni și condiții</a></li>
<li><a class="text-muted" href="/politica">Politica de confidențialitate</a></li>
<li><a class="text-muted" href="/nota-de-informare">Notă de informare</a></li>
<li><a class="text-muted" href="/termeni/">Termeni și condiții</a></li>
<li><a class="text-muted" href="/politica/">Politica de confidențialitate</a></li>
<li><a class="text-muted" href="/nota-de-informare/">Notă de informare</a></li>
</ul>
<a class="footer-brand" href="https://code4.ro/">
<img src="{{ static('images/footer-logo.png') }}" alt="Code for Romania">
Expand Down
20 changes: 10 additions & 10 deletions backend/templates/v1/for-ngos.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h4>Vrem să te ajutăm să colectezi formularele de redirectionare</h4>
<p>Totul este <strong>gratuit</strong>.</p>
</div>
<div class="col-sm-6">
<form class="form form-horizontal" action="/cont-nou" role="form" method="post">
<form class="form form-horizontal" action="/cont-nou/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<div class="form-group">
Expand All @@ -47,25 +47,25 @@ <h4>Vrem să te ajutăm să colectezi formularele de redirectionare</h4>
</div>
<div class="col-xs-12 col-sm-6 second-form-row">
<input class="form-control" type="text" name="prenume" placeholder="Prenume" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="email" name="email" placeholder="Email" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input class="form-control" type="password" name="parola" placeholder="Parola" required />
</div>
</div>
</div>
<div class="form-group">
<div class="col-xs-12 checkbox">
<label class="" for="agree">
<input type="checkbox" name="agree" id="agree" required />
Sunt de acord cu <a href="/termeni">Termenii aplicației</a>.
Sunt de acord cu <a href="/termeni/">Termenii aplicației</a>.
</label>
</div>
</div>
</div>
<div class="form-group margin-top">
<div class="col-sm-12">
Expand All @@ -77,14 +77,14 @@ <h4>Vrem să te ajutăm să colectezi formularele de redirectionare</h4>

</div>
</div>

<div class="g-recaptcha" data-sitekey="{{ captcha_public_key }}" data-size="invisible" data-callback="onSubmit"></div>

</div>

{% endblock %}

{% block scripts %}
<script type="text/javascript" src="{{ static('/js/login.js') }}"></script>
{% endblock %}

{% endblock %}
10 changes: 5 additions & 5 deletions backend/templates/v1/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
{% if not custom_subdomain %}
<div id="header-menu" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/asociatii">Asociații</a></li>
<li><a href="/ong">Înregistrează ONG</a></li>
<li><a href="/despre">Despre</a></li>
<li><a href="/login">Log In</a></li>
<li><a href="/asociatii/">Asociații</a></li>
<li><a href="/ong/">Înregistrează ONG</a></li>
<li><a href="/despre/">Despre</a></li>
<li><a href="/login/">Log In</a></li>
</ul>
<div id="sponsor-container">
<p class="text-center text-link">
Expand All @@ -41,7 +41,7 @@
</div>
</div>
{% endif %}
{#
{#
<div id="creator-container">
<p>Aplicație realizată de</p>
<a href="https://code4.ro/" target="_blank">
Expand Down
4 changes: 2 additions & 2 deletions backend/templates/v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h4>
{% if not custom_subdomain %}
<div class="col-xs-12">
<div class="text-center">
<a id="for-ngos" class="btn btn-info btn-lg" href="/asociatii">Vezi toate asociațiile</a>
<a id="for-ngos" class="btn btn-info btn-lg" href="/asociatii/">Vezi toate asociațiile</a>
</div>
</div>
{% endif %}
Expand Down Expand Up @@ -118,7 +118,7 @@ <h3>Cum funcționează?</h3>
</div>
<div class="media-body">
<h3 class="homepage-media-title">
Completează formularul de pe pagina unui <a href="/asociatii">ONG</a>.
Completează formularul de pe pagina unui <a href="/asociatii/">ONG</a>.
</h3>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions backend/templates/v1/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div id="login-container" class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2" id="login">
<form id='login-form' class="form form-horizontal" action="/login" role="form" method="post">
<form id='login-form' class="form form-horizontal" action="/login/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Login</legend>
Expand All @@ -39,8 +39,8 @@
<div class="col-sm-12">
<button type="submit" class="btn btn-primary">Trimite</button>

<a href="/forgot" class="btn btn-link pull-right">Am uitat parola</a>
<a href="/cont-nou" class="btn btn-link pull-right">Vreau un cont nou</a>
<a href="/forgot/" class="btn btn-link pull-right">Am uitat parola</a>
<a href="/cont-nou/" class="btn btn-link pull-right">Vreau un cont nou</a>
</div>
</div>
</fieldset>
Expand Down
10 changes: 5 additions & 5 deletions backend/templates/v1/ngo/account-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

<div id="account-header-container" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/contul-meu">Acasă</a></li>
<li><a href="/asociatia">Date asociație</a></li>
<li><a href="/date-cont">Date cont</a></li>
<li><a href="/contul-meu/">Acasă</a></li>
<li><a href="/asociatia/">Date asociație</a></li>
<li><a href="/date-cont/">Date cont</a></li>
<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Donatii <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
Expand All @@ -26,8 +26,8 @@
</li> -->
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="/logout">Ieși din cont</a></li>
<li><a href="/logout/">Ieși din cont</a></li>
</ul>
</div>
</div>
</nav>
</nav>
2 changes: 1 addition & 1 deletion backend/templates/v1/ngo/my-account-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<div class="row">
<div class="col-xs-8 col-xs-offset-2 col-sm-6 col-sm-offset-3 col-lg-4 col-lg-offset-4">
<form class="form-horizontal" action="/date-cont" role="form" method="post">
<form class="form-horizontal" action="/date-cont/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Datele contului tău</legend>
Expand Down
2 changes: 1 addition & 1 deletion backend/templates/v1/parola-noua.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div id="login-container" class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 col-lg-4 col-lg-offset-4" id="reset-password">
<form class="form form-horizontal" action="/password" role="form" method="post">
<form class="form form-horizontal" action="/password/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<legend>Resetare parolă</legend>
Expand Down
4 changes: 2 additions & 2 deletions backend/templates/v1/resetare-parola.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<div id="login-container" class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 col-lg-6 col-lg-offset-3" id="reset-password">
<form class="form form-horizontal" action="/forgot" role="form" method="post">
<form class="form form-horizontal" action="/forgot/" role="form" method="post">
{{ csrf_input }}
<fieldset>
<p>Pentru recuperarea parolei, te rugăm să introduci în câmpul de mai jos adresa de e-mail <strong>cu care te-ai înregistrat</strong> și apoi să apeși butonul <strong>Trimite</strong>.</p>
Expand All @@ -48,7 +48,7 @@
</div>

<div class="g-recaptcha" data-sitekey="{{ captcha_public_key }}" data-size="invisible" data-callback="onSubmit"></div>

</div>
{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion backend/templates/v1/twopercent.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h3 class="donation-page-subtitle">Pasul 1. Completează și descarcă formularu
<div class="col-xs-12 col-lg-10 checkbox">
<label class="agree-label" for="agree">
<input type="checkbox" name="agree" id="agree" required />
Sunt de acord cu <a href="/termeni" target="_blank">Termenii aplicației</a> și cu <a href="/politica" target="_blank">Politica de confidențialitate</a>.
Sunt de acord cu <a href="/termeni/" target="_blank">Termenii aplicației</a> și cu <a href="/politica" target="_blank">Politica de confidențialitate</a>.
</label>
</div>
</div>
Expand Down

0 comments on commit 3cbad56

Please sign in to comment.