mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
CSS Reshuffle, Added Page Renderer
Reorganized the CSS structure to there is some seperation between front facing style and the backend den. Also add the Render class so auth status is included in every template rendering event so login status and select member data is available if needed. will expand if needed.
This commit is contained in:
@ -1,16 +1,30 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=dfadf">
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?=qwert">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section role="den-login">
|
||||
<h1>This is the Den</h1><br/>
|
||||
{% if notice is defined %}
|
||||
<div role="system-notice">
|
||||
{{ notice }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ include("forms/login-form.twig") }}
|
||||
</section>
|
||||
{% if loggedIn %}
|
||||
<section role="den-index">
|
||||
<h1>
|
||||
Welcome to the Den,
|
||||
{{ handle }}
|
||||
|
||||
</h1>
|
||||
Remember to pace yourself because you're working with some of the worse places on the web. Drink water, takes lot of breaks and remember you are the reason the interent is becoming safer.
|
||||
</section>
|
||||
|
||||
{% else %}
|
||||
<section role="den-login">
|
||||
<h1>This is the Den</h1><br/>
|
||||
{% if notice is defined %}
|
||||
<div role="system-notice">
|
||||
{{ notice }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ include("forms/login-form.twig") }}
|
||||
</section>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?=qwert">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
@ -14,26 +14,31 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if mode == "add" %}
|
||||
{% if options.mode == "add" %}
|
||||
<h2>Add New Location</h2>
|
||||
{{ include("forms/add-location.twig") }}
|
||||
{% elseif mode =='bulk-add' %}
|
||||
{% elseif options.mode =='bulk-add' %}
|
||||
<h2>Add Multiple Locations</h2>
|
||||
{{ include("forms/bulk-add-location.twig") }}
|
||||
{% elseif mode == "edit" %}
|
||||
{% elseif options.mode == "edit" %}
|
||||
<h2>Editing
|
||||
{{ location.name }}</h2>
|
||||
{{ options.location.name }}</h2>
|
||||
{% for image in options.location.images %}
|
||||
<a target="_blank" href="/assets/images/examples/{{ image.path }}">
|
||||
<img src="/assets/images/examples/{{ image.path }}"/>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{{ include("forms/edit-location.twig") }}
|
||||
{% else %}
|
||||
<h2>Take care. These are bad places.</h2>
|
||||
<a href="/den/locations/add">Add Location</a>
|
||||
<a href="/den/locations/modify/add">Add Location</a>
|
||||
|
|
||||
<a href="/den/locations/bulk-add">Add Multiple Locations</a>
|
||||
<br>
|
||||
<h3>Bad Spaces</h3>
|
||||
{% for location in list.locations %}
|
||||
{% for location in options.list.locations %}
|
||||
<sup>ID:{{ location.id }}</sup>
|
||||
<a href="/den/locations/edit/{{ location.uuid }}">
|
||||
<a href="/den/locations/modify/edit/{{ location.uuid }}">
|
||||
|
||||
{{ location.name }}</a><br/>
|
||||
{% endfor %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/back/start.css?=qwert">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
|
@ -1,14 +0,0 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=dfdferer">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section role="den-index">
|
||||
<h1>
|
||||
Welcome to the Den.
|
||||
|
||||
</h1>
|
||||
Remember to pace yourself because you're working with some of the worse places on the web. Drink water, takes lot of breaks and remember you are the reason the interent is becoming safer.
|
||||
</section>
|
||||
{% endblock %}
|
@ -13,28 +13,33 @@
|
||||
<header>
|
||||
<nav>
|
||||
<div role="nav-left">
|
||||
<a href="/den">The Bad Space</a>
|
||||
<i class="ti ti-biohazard-off"></i>
|
||||
<a href="/">The Bad Space</a>
|
||||
</div>
|
||||
<div role="nav-right">
|
||||
<div role="nav-right"></a>
|
||||
|
||||
{% if handle is defined %}
|
||||
<strong>Hey
|
||||
{{ handle }}
|
||||
</strong>
|
||||
{% endif %}
|
||||
<a href="/den/members">Members
|
||||
{% if loggedIn == true %}
|
||||
<a href="/den" title="den index">
|
||||
<i class="ti ti-door" title="den index"></i>
|
||||
</a>
|
||||
<a href="/den/locations/page/1">Locations
|
||||
<a href="/den/members" title="members">
|
||||
<i class="ti ti-users" title="members"></i>
|
||||
</a>
|
||||
<a href="/logout">Bye</a>
|
||||
</div>
|
||||
<a href="/den/locations/page/1" title="locations">
|
||||
<i class="ti ti-list-details" title="locations"></i>
|
||||
</a>
|
||||
<a href="/logout" title="logout">
|
||||
<i class="ti ti-door-exit" title="logout"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="/den" title="login">
|
||||
<i class="ti ti-door-enter" title="login"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
<main>
|
||||
{% block main %}{% endblock %}
|
||||
</main>
|
||||
{% block javascripts %}{% endblock %}
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
</html></header><main>
|
||||
{% block main %}{% endblock %}</main>{% block javascripts %}{% endblock %}</body></html>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<form action="{{ path('location-add') }}" method="post" enctype="multipart/form-data">
|
||||
<form action="{{ path('location-modify') }}" method="post" enctype="multipart/form-data">
|
||||
<div>
|
||||
<label>Name</label><br/>
|
||||
<input type="text" name="loc_name" value=""/>
|
||||
@ -24,4 +24,5 @@
|
||||
<input type="file" id="loc_examples" name="loc_examples[]" multiple/>
|
||||
</div>
|
||||
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
|
||||
<input type="hidden" name="mode" value="add"/>
|
||||
<input type="submit" value="Edit Location" name="submit_button"></form>
|
||||
|
@ -1,20 +1,20 @@
|
||||
<form action="{{ path('location-edit') }}" method="post" enctype="multipart/form-data">
|
||||
<form name="edit" action="{{ path('location-modify') }}" method="post" enctype="multipart/form-data">
|
||||
<div>
|
||||
<label>Name</label><br/>
|
||||
<input type="text" name="loc_name" value="{{ location.name }}"/>
|
||||
<input type="text" name="loc_name" value="{{ options.location.name }}"/>
|
||||
<br/>
|
||||
<label>URL</label><br/>
|
||||
<input type="text" name="loc_url" value="{{ location.url }}"/>
|
||||
<input type="text" name="loc_url" value="{{ options.location.url }}"/>
|
||||
<br/>
|
||||
<label>Tags</label><br/>
|
||||
<input type="text" name="loc_tags" value="{{ location.tags }}"/>
|
||||
<input type="text" name="loc_tags" value="{{ options.location.tags }}"/>
|
||||
<br/>
|
||||
<label>Description</label><br/>
|
||||
<textarea name="loc_desc">{{ location.description }}</textarea>
|
||||
<textarea name="loc_desc">{{ options.location.description }}</textarea>
|
||||
<br/>
|
||||
<label>Rating</label><br/>
|
||||
<select name="rating">
|
||||
{% if location.rating == "silence" %}
|
||||
{% if options.location.rating == "silence" %}
|
||||
<option value="silence" selected>Silence</option>
|
||||
<option value="defederate">Defederate</option>
|
||||
{% else %}
|
||||
@ -24,7 +24,7 @@
|
||||
</select><br/>
|
||||
<label>Include in search results</label><br/>
|
||||
<select name="active">
|
||||
{% if location.active %}
|
||||
{% if options.location.active %}
|
||||
<option value="false">No</option>
|
||||
<option value="true" selected>Yes</option>
|
||||
{% else %}
|
||||
@ -37,4 +37,6 @@
|
||||
<input type="file" id="loc_examples" name="loc_examples[]" multiple/>
|
||||
</div>
|
||||
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
|
||||
<input type="hidden" name="mode" value="edit"/>
|
||||
<input type="hidden" name="uuid" value="{{ options.location.uuid }}"/>
|
||||
<input type="submit" value="Edit Location" name="submit_button"></form>
|
||||
|
@ -9,5 +9,6 @@
|
||||
Because some people are just awful humans.
|
||||
<p>Coming Soonish...
|
||||
</p>
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
@ -1,10 +0,0 @@
|
||||
{% extends "base/frame.twig" %}
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" type="text/css" href="/assets/css/front/start.css?=sdfsdf">
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<section role="intro">
|
||||
This is where you login
|
||||
</section>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user