From 4948a16fe13e598ddbb3435a9f33f2aea872ab8c Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 8 Oct 2018 16:55:02 +0100 Subject: [PATCH] new xanalink template --- sourcing/static/js/new_xanalink.js | 11 +++++++++ sourcing/templates/new_xanalink.html | 34 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 sourcing/static/js/new_xanalink.js create mode 100644 sourcing/templates/new_xanalink.html diff --git a/sourcing/static/js/new_xanalink.js b/sourcing/static/js/new_xanalink.js new file mode 100644 index 0000000..a84f1a1 --- /dev/null +++ b/sourcing/static/js/new_xanalink.js @@ -0,0 +1,11 @@ +$(function () { + $('#custom-field').hide(); + + $('.link-type-radio').click(function() { + if (this.id == 'btn-custom') { + $('#custom-field').show(); + } else { + $('#custom-field').hide(); + } + }); +}); diff --git a/sourcing/templates/new_xanalink.html b/sourcing/templates/new_xanalink.html new file mode 100644 index 0000000..bb03f2e --- /dev/null +++ b/sourcing/templates/new_xanalink.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% block title %}New xanalink {% endblock %} +{% set link_types = ['untyped', 'title', 'author', 'custom'] %} + +{% block content %} +

{{ self.title() }}

+ + +

This is an empty link. You should add some facets.

+ +

link type

+
+ {% for link_type in link_types %} + + {% endfor %} +
+

custom link type:

+ +

new facet

+ + + + + + + +{% endblock %} + +{% block scripts %} + +{% endblock %}