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 %} +
This is an empty link. You should add some facets.
+ +custom link type:
+ +