github.com/cayleygraph/cayley@v0.7.7/templates/write.html (about)

     1  <!DOCTYPE html>
     2  <!--
     3  // Copyright 2014 The Cayley Authors. All rights reserved.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //     http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  -->
    17  <html>
    18  <head>
    19  {{template "head"}}
    20  </head>
    21  <body>
    22  <div class="page-container">
    23  
    24    {{template "top_navbar"}}
    25  
    26    <div class="container-fluid">
    27      <div class="row row-offcanvas row-offcanvas-left">
    28        {{template "sidebar"}}
    29        <!-- main area -->
    30        <div class="col-sm-10 col-xs-12" id="main">
    31          <div class="row">
    32            <div class="col-xs-12 col-sm-12">
    33              <h2> Write an N-Quads file: </h2>
    34                <input id="nquad_file" type="file"></input>
    35              </div>
    36            </div><!-- /.col-xs-12 main -->
    37          <div class="row button-row">
    38            <div class="col-sm-12 col-xs-12">
    39                <button id="write_file" type="button" class="btn btn-primary">Write File</button>
    40            </div>
    41          </div>
    42          <div class="row">
    43            <div class="col-sm-12 col-xs-12">
    44                <h2> Write a quad: </h2>
    45                <input id="subject" type="text" placeholder="Subject"></input>
    46                <input id="predicate" type="text" placeholder="Predicate"></input>
    47                <input id="object" type="text" placeholder="Object"></input>
    48                <input id="label" type="text" placeholder="Label"></input>
    49            </div>
    50          </div>
    51          <div class="row button-row">
    52            <div class="col-sm-12 col-xs-12">
    53                <button id="add_quad" type="button" class="btn">Add Quad</button>
    54            </div>
    55          </div>
    56          <div class="row">
    57            <div class="col-xs-12 col-sm-12">
    58                <h2> Remove a quad: </h2>
    59                <input id="rsubject" type="text" placeholder="Subject"></input>
    60                <input id="rpredicate" type="text" placeholder="Predicate"></input>
    61                <input id="robject" type="text" placeholder="Object"></input>
    62                <input id="rlabel" type="text" placeholder="Label"></input>
    63                </div>
    64            </div><!-- /.col-xs-12 main -->
    65          <div class="row button-row">
    66            <div class="col-sm-12 col-xs-12">
    67                <button id="delete_quad" type="button" class="btn">Delete Quad</button>
    68            </div>
    69          </div>
    70          </div>
    71        </div> <!--/#main-->
    72      </div> <!--/.row-->
    73    </div><!--/.container-->
    74  </div><!--/.page-container-->
    75  </body>
    76  {{template "foot"}}
    77  <script src="/static/js/cayley_main.js" type="text/javascript" charset="utf-8"></script>
    78  <script src="/static/js/cayley_write.js" type="text/javascript" charset="utf-8"></script>
    79  </html>