From 1af6c94b4e59b94628ccc404a67d853ef7e0431e Mon Sep 17 00:00:00 2001 From: Philip ABBET <philip.abbet@idiap.ch> Date: Thu, 24 Nov 2016 11:56:49 +0100 Subject: [PATCH] [website] Hide one of the sharing options for binary algorithms --- .../templates/algorithms/panels/sharing.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/beat/web/algorithms/templates/algorithms/panels/sharing.html b/beat/web/algorithms/templates/algorithms/panels/sharing.html index 08afb2c95..467487ad3 100644 --- a/beat/web/algorithms/templates/algorithms/panels/sharing.html +++ b/beat/web/algorithms/templates/algorithms/panels/sharing.html @@ -128,6 +128,7 @@ algorithm</p> </label> </div> + {% if not object.is_binary %} <div class="radio"> <label class="control-label"> <input id="shared-radio" type="radio" name="sharing" value="shared"/> Shared @@ -143,6 +144,15 @@ code).</p> </label> </div> + {% else %} + <div class="radio"> + <label class="control-label"> + <input id="usable-radio" type="radio" name="sharing" value="usable"/> Usable + <p class="help">The users <b>and</b> teams indicated below will + be able to use this algorithm.</p> + </label> + </div> + {% endif %} </div> </fieldset> <fieldset id="sharing-options" disabled> -- GitLab