Skip to content

Commit

Permalink
Add basic view for sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Apr 18, 2024
1 parent d5375ea commit 3473ae6
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/projects/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,5 @@
),
# User Feedback
path("user_feedback", user_feedback, name="user_feedback"),
path("sponsor/feature", sponsor_feature, name="sponsor_feature"),
]
5 changes: 5 additions & 0 deletions app/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def user_feedback(request):
return render(request, "feedback.html", {"form": form})


@require_http_methods(["GET", "POST"])
def sponsor_feature(request):
return render(request, "legal/sponsor_feature.html")


@login_required
@json_view
@require_http_methods(["GET"])
Expand Down
4 changes: 4 additions & 0 deletions app/templates/legal/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ <h2>{% translate "open_plan project website" %}</h2>
<div class="standard-layout__paragraph standard-layout__paragraph--foreground">
<h2>{% translate "Feedback or question?" %}</h2>
{% url 'user_feedback' as url_feedback %}
{% url 'sponsor_feature' as url_sponsor %}
{% blocktranslate with url_github="https://github.com/orgs/open-plan-tool/projects/5" %}
<p>You can always <a href="{{url_feedback}}">leave us a comment or feedback</a> on things you would improve. You can also visit <a href="{{url_github}}" target="_blank" rel="noreferrer">our github project page</a> to see which bugs are being fixed and which new features are being developed.</p>
{% endblocktranslate %}
{% blocktranslate %}
<p>If you wish to sponsor a new feature of open-plan-tool, please visit our <a href="{{url_sponsor}}" target="_blank" rel="noreferrer">sponsoring page<a></p>
{% endblocktranslate %}
</div>
<div class="standard-layout__paragraph standard-layout__paragraph--small">
<h2>Github</h2>
Expand Down
42 changes: 42 additions & 0 deletions app/templates/legal/sponsor_feature.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% extends 'base.html' %}
{% load i18n %}


{% block title %} {% translate "Sponsor - open_plan" %} {% endblock title%}

<!-- WRITE HTML CODE WITHIN THESE block content TAGS -->
{% block content %}
<main>
<section class="header">
<div>
<div class="header__left"></div>
<h1 class="header__title">{% translate "Sponsor new features" %}</h1>
<div class="header__back"></div>
</div>
</section>
<section class="standard-layout">
<div>
<div class="standard-layout__paragraph standard-layout__paragraph--foreground">
<h2>{% translate "You wish a feature would be added to open-plan?" %}</h2>
{% url 'user_feedback' as url_feedback %}
{% blocktranslate with url_op="https://open-plan-tool.org/index_en.html" %}
<p>
The open-plan-tool was developed within the <a href="{{url_op}}">open_plan project</a> which ended in June 2023. Since then the tool has remained online but with limited to no budget to fix bugs or develop new features wished by users. If you are an enterprise and wish to use the open-plan-tool if only it had an extra feature, then please contact us at <a href="mailto:open_plan@rl-institut.de">open_plan@rl-institut.de</a> or via our <a href="{{url_feedback}}">feedback page</a> </p>
{% endblocktranslate %}
</div>

<div class="standard-layout__paragraph">
<h2>Other paragraph type</h2>
Blablabla
</div>
<div class="standard-layout__paragraph standard-layout__paragraph--small">
<h2>Other (small) paragraph type</h2>
Blablabla
</div>


</div>
</section>
</main>
{% endblock content %}

3 changes: 3 additions & 0 deletions app/templates/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<li class="nav-item">
<a class="nav-link" href="{% url 'usecase_search' %}">{% translate "Use cases" %}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'user_feedback' %}">{% translate "Sponsor Features" %}</a>
</li>
{% if user.is_authenticated %}
<li class="nav-item">
<a class="nav-link" href="{% url 'user_feedback' %}">{% translate "Feedback" %}</a>
Expand Down

0 comments on commit 3473ae6

Please sign in to comment.