|
| 1 | +<html> |
| 2 | + |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title class="cdiPreviewText">CDI Preview</title> |
| 6 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
| 7 | + <script type="text/javascript" src="js/xss.js"></script> |
| 8 | + <script type="module" src="js/shacl-form.js"></script> |
| 9 | + <script src="lib/jquery.i18n.js"></script> |
| 10 | + <script src="lib/jquery.i18n.messagestore.js"></script> |
| 11 | + <script src="lib/jquery.i18n.language.js"></script> |
| 12 | + <script type="text/javascript" src="js/retriever.js"></script> |
| 13 | + <script type="text/javascript" src="js/cdi.js"></script> |
| 14 | + <!-- Latest compiled and minified CSS --> |
| 15 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" |
| 16 | + integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous"> |
| 17 | + <!-- Optional theme --> |
| 18 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" |
| 19 | + integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous"> |
| 20 | + <link type="text/css" rel="stylesheet" href="css/preview.css" /> |
| 21 | + <style> |
| 22 | + .cdi-form-container { |
| 23 | + margin-top: 20px; |
| 24 | + padding: 15px; |
| 25 | + background-color: #f9f9f9; |
| 26 | + border: 1px solid #ddd; |
| 27 | + border-radius: 4px; |
| 28 | + } |
| 29 | + |
| 30 | + .preview-info { |
| 31 | + padding: 15px; |
| 32 | + background-color: #d9edf7; |
| 33 | + border: 1px solid #bce8f1; |
| 34 | + border-radius: 4px; |
| 35 | + margin-bottom: 20px; |
| 36 | + color: #31708f; |
| 37 | + } |
| 38 | + |
| 39 | + .preview-info p { |
| 40 | + margin: 5px 0; |
| 41 | + } |
| 42 | + |
| 43 | + .preview-info strong { |
| 44 | + font-size: 1.2em; |
| 45 | + } |
| 46 | + |
| 47 | + shacl-form { |
| 48 | + display: block; |
| 49 | + width: 100%; |
| 50 | + } |
| 51 | + </style> |
| 52 | +</head> |
| 53 | + |
| 54 | +<body class="container"> |
| 55 | + <main><img id='logo' alt='Site Logo'> |
| 56 | + <h1 class="page-title cdiPreviewText">CDI Preview</h1> |
| 57 | + |
| 58 | + <!-- Edit/Save toolbar --> |
| 59 | + <div class="edit-toolbar" style="margin-bottom: 20px; padding: 15px; background-color: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; display: none;"> |
| 60 | + <div class="row"> |
| 61 | + <div class="col-md-6"> |
| 62 | + <div class="form-group"> |
| 63 | + <label for="api-token-input">API Token (required for saving):</label> |
| 64 | + <input type="password" id="api-token-input" class="form-control" placeholder="Enter your Dataverse API token"> |
| 65 | + <small class="help-block">Your API token is required to save changes back to Dataverse.</small> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + <div class="col-md-6" style="padding-top: 25px;"> |
| 69 | + <button id="toggle-edit-btn" class="btn btn-primary"> |
| 70 | + <span class="glyphicon glyphicon-edit"></span> Enable Editing |
| 71 | + </button> |
| 72 | + <button id="save-btn" class="btn btn-success" style="display: none;"> |
| 73 | + <span class="glyphicon glyphicon-floppy-disk"></span> Save Changes |
| 74 | + </button> |
| 75 | + <span id="save-status" style="margin-left: 10px;"></span> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + |
| 80 | + <div class='preview-container'> |
| 81 | + <div class='preview-header'></div> |
| 82 | + <div class='preview'></div> |
| 83 | + </div> |
| 84 | + </main> |
| 85 | +</body> |
| 86 | + |
| 87 | +</html> |
0 commit comments