/[projects]/dao/DaoAdresseVedligehold/src/main/webapp/index.html
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/webapp/index.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2918 by torben, Thu Feb 4 14:40:36 2016 UTC revision 2928 by torben, Fri Feb 5 11:09:02 2016 UTC
# Line 6  Line 6 
6          <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" />          <link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
7                    
8          <link rel="stylesheet" href="webjars/bootstrap-fileinput/4.2.7/css/fileinput.min.css" />          <link rel="stylesheet" href="webjars/bootstrap-fileinput/4.2.7/css/fileinput.min.css" />
9            
10            <style>
11            
12    @media (min-width: 1300px) {
13            .container {
14                width: 1300px; /*default 1170px*/
15            }
16    }
17            </style>
18    
19  <!--  use webjars for dependencies -->  <!--  use webjars for dependencies -->
20          <script src="webjars/jquery/2.1.4/jquery.js"></script>          <script src="webjars/jquery/2.1.4/jquery.js"></script>
# Line 42  function loadTasks() { Line 51  function loadTasks() {
51                                                    
52                          html += "<div class='panel " + pclass + "'>";                          html += "<div class='panel " + pclass + "'>";
53                          html += "<div class='panel-heading'>";                          html += "<div class='panel-heading'>";
54                          if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED") {                          if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED" || entry.state ==  "STATE_QUEUED") {
55                                  html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>&times;</span></button>";                                  html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>&times;</span></button>";
56                          }                          }
57                          html += "<h4 class='panel-title'>" + entry.description + "</h4>";                          html += "<h4 class='panel-title'>" + entry.description + "</h4>";
# Line 146  $(document).ready( function() { Line 155  $(document).ready( function() {
155                          alert("Du skal vælge distributør");                          alert("Du skal vælge distributør");
156                          return;                          return;
157                  }                  }
158                    var type = $("#afstand_type").val();
159                    var url = "rest/commands/distancecalculation/" + dist + "/" + type;
160                                    
161                                    
162                  $.get("rest/commands/distancecalculation/" + dist, function() {                  $.get(url, function() {
163                          loadTasks(); //Force reload of tasks immediately                          loadTasks(); //Force reload of tasks immediately
164                  } );                  } );
165                                    
# Line 161  $(document).ready( function() { Line 172  $(document).ready( function() {
172    </head>    </head>
173    <body>    <body>
174        
175  <div class="container-fluid">  <div class="container">
176    <div class="page-header">    <div class="page-header">
177      <h1>Dao Adresse Vedligehold</h1>      <h1>Dao Adresse Vedligehold</h1>
178    </div>    </div>
179    <div id="body">    <div id="body">
180      <div class="row">      <div class="row">
181      <div class="col-sm-1" id="leftCol-blank" >        <div class="col-sm-3" id="leftCol" >
     </div>  
       
       <div class="col-sm-2" id="leftCol" >  
182          <div class="panel panel-primary">          <div class="panel panel-primary">
183                  <div class="panel-heading">                  <div class="panel-heading">
184                          <h3 class="panel-title">Queue</h3>                          <h3 class="panel-title">Queue</h3>
# Line 188  $(document).ready( function() { Line 196  $(document).ready( function() {
196        </pre>        </pre>
197        </div>        </div>
198                
199        <div class="col-sm-2" id="rightCol" >        <div class="col-sm-3" id="rightCol" >
200          <div class="panel panel-primary">          <div class="panel panel-primary">
201                  <div class="panel-heading">                  <div class="panel-heading">
202                          <h3 class="panel-title">Upload File</h3>                          <h3 class="panel-title">Upload File</h3>
# Line 237  $(document).ready( function() { Line 245  $(document).ready( function() {
245                              <option>BK</option>                              <option>BK</option>
246                              <option>DAO</option>                              <option>DAO</option>
247                            </select>                            </select>
248    
249                              
250                              <label for="type">Type:</label>
251                              <select class="form-control" id="afstand_type" name="afstand_type">
252                                <option>Incremental</option>
253                                <option>Full</option>                          
254                              </select>
255                            <br>                            <br>
256    
257                                                        
258                            <button class="btn btn-primary" id="afstandBtn">Beregn</button>                            <button class="btn btn-primary" id="afstandBtn">Beregn</button>
259        

Legend:
Removed from v.2918  
changed lines
  Added in v.2928

  ViewVC Help
Powered by ViewVC 1.1.20