@@ -273,71 +273,73 @@ <h1>Certifying Organisation (all)</h1>
273273 </ div >
274274 </ div >
275275 <!-- End modal -->
276- < div class ="columns is-vcentered ">
277- < div class ="column ">
278- < h1 class ="title "> {{ certifyingorganisation.name }}</ h1 >
279- </ div >
280-
281- {# Only organisation owners or staff can edit #}
282- < div class ="column buttons has-text-right ">
283- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon about-link "
284- data-tooltip ="About Certification "
285- href ="https://qgis.org/community/certification/ " target ="_blank ">
286- < i class ="fas fa-info-circle "> </ i >
287- </ a >
288- {% if certifyingorganisation.approved %}
289- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
290- href ='{% url "feed-training-center" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
291- data-tooltip ="GeoJSON Feed for List of Training Center ">
292- < i class ="fas fa-rss-square "> </ i >
293- </ a >
294- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
295- href ='{% url "feed-upcoming-course" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
296- data-tooltip ="Feed for List of Upcoming Courses ">
297- < i class ="fas fa-rss "> </ i >
298- </ a >
299- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
300- href ='{% url "feed-past-course" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
301- data-tooltip ="Feed for List of Past Courses ">
302- < i class ="fas fa-rss "> </ i >
303- </ a >
304- {% endif %}
305- {% if user_can_delete %}
306- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
307- href ='{% url "certifyingorganisation-update" slug=certifyingorganisation.slug %} '
308- data-tooltip ="Edit {{ certifyingorganisation.name }} ">
309- < i class ="fas fa-pencil-alt "> </ i >
310- </ a >
311- {% if certifyingorganisation.is_archived %}
312- < a class ="button is-outlined is-success has-tooltip-arrow has-tooltip-bottom icon "
313- href ='{% url "certifyingorganisation-toogle-archive" slug=certifyingorganisation.slug toogle_archive="unarchive" %} '
314- data-tooltip ="Activate {{ certifyingorganisation.name }} ">
315- < i class ="fas fa-check-circle "> </ i >
316- </ a >
276+ < h1 class ="title "> {{ certifyingorganisation.name }}</ h1 >
277+ {# Only organisation owners or staff can edit #}
278+ < div class ="buttons ">
279+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
280+ href ='{% if certifyingorganisation.approved %}
281+ {% url "certifyingorganisation-list" %}
317282 {% else %}
318- < a class ="button is-danger is-light has-tooltip-arrow has-tooltip-bottom icon "
319- href ='{% url "certifyingorganisation-toogle-archive" slug=certifyingorganisation.slug toogle_archive="archive" %} '
320- data-tooltip ="Deactivate {{ certifyingorganisation.name }} ">
321- < i class ="fas fa-archive "> </ i >
322- </ a >
323- {% endif %}
324- < a class ="button is-danger is-light has-tooltip-arrow has-tooltip-bottom icon "
325- href ='{% url "certifyingorganisation-delete" slug=certifyingorganisation.slug %} '
326- data-tooltip ="Delete {{ certifyingorganisation.name }} ">
327- < i class ="fas fa-trash "> </ i >
328- </ a >
329- {% endif %}
330- < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
331- href ='{% if certifyingorganisation.approved %}
332- {% url "certifyingorganisation-list" %}
333- {% else %}
334- {% url "pending-certifyingorganisation-list" %}?ready={% if certifyingorganisation.status.name == 'Pending ' %}false{% else %}true{% endif %}
335- {% endif %}'
336- data-tooltip="Back ">
337- < i class ="fas fa-arrow-left "> </ i >
338- </ a >
339- </ div >
340- </ div >
283+ {% url "pending-certifyingorganisation-list" %}?ready={% if certifyingorganisation.status.name == 'Pending ' %}false{% else %}true{% endif %}
284+ {% endif %}'
285+ data-tooltip="Back ">
286+ < i class ="fas fa-arrow-left "> </ i >
287+ </ a >
288+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon about-link "
289+ data-tooltip ="About Certification "
290+ href ="https://qgis.org/community/certification/ " target ="_blank ">
291+ < i class ="fas fa-info-circle "> </ i >
292+ </ a >
293+ {% if certifyingorganisation.approved %}
294+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
295+ href ='{% url "feed-training-center" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
296+ data-tooltip ="GeoJSON Feed for List of Training Center ">
297+ < i class ="fas fa-rss-square "> </ i >
298+ </ a >
299+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
300+ href ='{% url "feed-upcoming-course" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
301+ data-tooltip ="Feed for List of Upcoming Courses ">
302+ < i class ="fas fa-rss "> </ i >
303+ </ a >
304+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
305+ href ='{% url "feed-past-course" organisation_slug=certifyingorganisation.slug %} ' target ="_blank "
306+ data-tooltip ="Feed for List of Past Courses ">
307+ < i class ="fas fa-rss "> </ i >
308+ </ a >
309+ {% if user_can_delete %}
310+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
311+ href ='{% url "issue-certificate-organisation" organisation_slug=certifyingorganisation.slug %} '
312+ data-tooltip ="Issue Certificate for {{ certifyingorganisation.name }} ">
313+ < i class ="fas fa-certificate "> </ i >
314+ </ a >
315+ {% endif %}
316+ {% endif %}
317+ {% if user_can_delete %}
318+ < a class ="button is-light has-tooltip-arrow has-tooltip-bottom icon "
319+ href ='{% url "certifyingorganisation-update" slug=certifyingorganisation.slug %} '
320+ data-tooltip ="Edit {{ certifyingorganisation.name }} ">
321+ < i class ="fas fa-pencil-alt "> </ i >
322+ </ a >
323+ {% if certifyingorganisation.is_archived %}
324+ < a class ="button is-outlined is-success has-tooltip-arrow has-tooltip-bottom icon "
325+ href ='{% url "certifyingorganisation-toogle-archive" slug=certifyingorganisation.slug toogle_archive="unarchive" %} '
326+ data-tooltip ="Activate {{ certifyingorganisation.name }} ">
327+ < i class ="fas fa-check-circle "> </ i >
328+ </ a >
329+ {% else %}
330+ < a class ="button is-danger is-light has-tooltip-arrow has-tooltip-bottom icon "
331+ href ='{% url "certifyingorganisation-toogle-archive" slug=certifyingorganisation.slug toogle_archive="archive" %} '
332+ data-tooltip ="Deactivate {{ certifyingorganisation.name }} ">
333+ < i class ="fas fa-archive "> </ i >
334+ </ a >
335+ {% endif %}
336+ < a class ="button is-danger is-light has-tooltip-arrow has-tooltip-bottom icon "
337+ href ='{% url "certifyingorganisation-delete" slug=certifyingorganisation.slug %} '
338+ data-tooltip ="Delete {{ certifyingorganisation.name }} ">
339+ < i class ="fas fa-trash "> </ i >
340+ </ a >
341+ {% endif %}
342+ </ div >
341343
342344 < div class ="columns ">
343345 < div class ="column is-half ">
0 commit comments