Apache Solr open-source search software
SOLR-3275: Make (UI) CoreAdmin Cloud-Aware
Stefan Matheisd290df514a6d
diff --git a/solr/webapp/web/js/scripts/cores.js b/solr/webapp/web/js/scripts/cores.jsindex ecc1a5eec58..09b5d2ca860 100644--- a/solr/webapp/web/js/scripts/cores.js+++ b/solr/webapp/web/js/scripts/cores.js@@ -257,6 +257,12 @@ sammy.get.width( cores_element.width() + 10 ).height( cores_element.height() );+ if( $( '#cloud.global' ).is( ':visible' ) )+ {+ $( '.cloud', div_action )+ .show();+ }+$( 'button.action', actions_element ).die( 'click' ).livediff --git a/solr/webapp/web/tpl/cores.html b/solr/webapp/web/tpl/cores.htmlindex d1a0deb2763..cf6e1f3472a 100644--- a/solr/webapp/web/tpl/cores.html+++ b/solr/webapp/web/tpl/cores.html@@ -50,6 +50,16 @@ limitations under the License.<p class="clearfix"><label for="add_schema">schema:</label><input type="text" name="schema" id="add_schema" placeholder="schema.xml"></p>+ <div class="cloud">++ <p class="clearfix"><label for="add_collection">collection:</label>+ <input type="text" name="collection" id="add_collection"></p>++ <p class="clearfix"><label for="add_shard">shard:</label>+ <input type="text" name="shard" id="shard"></p>++ </div>+<p class="clearfix buttons"><button type="submit" class="submit"><span>Add Core</span></button><button type="reset" class="reset"><span>Cancel</span></button>