|
99 | 99 | } |
100 | 100 | </script> |
101 | 101 |
|
102 | | -<div class="container"> |
103 | | - <div class="row mt-3 mb-3"> |
104 | | - <div class="col-sm-12"> |
105 | | - <div class="row justify-content-end"> |
106 | | - <div class="col-auto"> |
107 | | - <div class="input-group"> |
108 | | - <input |
109 | | - name="searchProject" |
110 | | - type="text" |
111 | | - class="form-control" |
112 | | - placeholder="Search" |
113 | | - bind:value={projectSearch} |
114 | | - /> |
115 | | - </div> |
116 | | - </div> |
117 | | - <div class="col-auto"> |
118 | | - <button class="btn btn-primary" on:click={() => newProjectModal.show()}> |
119 | | - Create new project |
120 | | - </button> |
| 102 | +<div class="row mt-3 mb-3"> |
| 103 | + <div class="col-sm-12"> |
| 104 | + <div class="row justify-content-end"> |
| 105 | + <div class="col-auto"> |
| 106 | + <div class="input-group"> |
| 107 | + <input |
| 108 | + name="searchProject" |
| 109 | + type="text" |
| 110 | + class="form-control" |
| 111 | + placeholder="Search" |
| 112 | + bind:value={projectSearch} |
| 113 | + /> |
121 | 114 | </div> |
122 | 115 | </div> |
| 116 | + <div class="col-auto"> |
| 117 | + <button class="btn btn-primary" on:click={() => newProjectModal.show()}> |
| 118 | + Create new project |
| 119 | + </button> |
| 120 | + </div> |
123 | 121 | </div> |
124 | 122 | </div> |
125 | | - <div class="row"> |
126 | | - <table class="table table-hover align-middle"> |
127 | | - <thead class="table-light"> |
128 | | - <tr> |
129 | | - <th class="col-7 col-lg-8">Name</th> |
130 | | - <th>Options</th> |
131 | | - </tr> |
132 | | - </thead> |
133 | | - <tbody> |
134 | | - {#key projects} |
135 | | - {#each filteredProjects as { id, name }} |
136 | | - <tr> |
137 | | - <td> |
138 | | - <a href={'/v2/projects/' + id}> |
139 | | - {name} |
140 | | - </a> |
141 | | - </td> |
142 | | - <td> |
143 | | - <button |
144 | | - class="btn btn-light" |
145 | | - data-bs-toggle="modal" |
146 | | - data-bs-target="#projectInfoModal" |
147 | | - on:click={() => setProjectInfoModal(id)} |
148 | | - > |
149 | | - <i class="bi bi-info-circle" /> Info |
150 | | - </button> |
151 | | - <ConfirmActionButton |
152 | | - modalId={'confirmDeleteProject' + id} |
153 | | - style={'danger'} |
154 | | - btnStyle="danger" |
155 | | - message="Delete project {name}" |
156 | | - buttonIcon="trash" |
157 | | - label="Delete" |
158 | | - callbackAction={() => handleDeleteProject(id)} |
159 | | - /> |
160 | | - </td> |
161 | | - </tr> |
162 | | - {/each} |
163 | | - {/key} |
164 | | - </tbody> |
165 | | - </table> |
166 | | - </div> |
| 123 | +</div> |
| 124 | +<div class="row"> |
| 125 | + <table class="table table-hover align-middle"> |
| 126 | + <thead class="table-light"> |
| 127 | + <tr> |
| 128 | + <th class="col-7 col-lg-8">Name</th> |
| 129 | + <th>Options</th> |
| 130 | + </tr> |
| 131 | + </thead> |
| 132 | + <tbody> |
| 133 | + {#key projects} |
| 134 | + {#each filteredProjects as { id, name }} |
| 135 | + <tr> |
| 136 | + <td> |
| 137 | + <a href={'/v2/projects/' + id}> |
| 138 | + {name} |
| 139 | + </a> |
| 140 | + </td> |
| 141 | + <td> |
| 142 | + <button |
| 143 | + class="btn btn-light" |
| 144 | + data-bs-toggle="modal" |
| 145 | + data-bs-target="#projectInfoModal" |
| 146 | + on:click={() => setProjectInfoModal(id)} |
| 147 | + > |
| 148 | + <i class="bi bi-info-circle" /> Info |
| 149 | + </button> |
| 150 | + <ConfirmActionButton |
| 151 | + modalId={'confirmDeleteProject' + id} |
| 152 | + style={'danger'} |
| 153 | + btnStyle="danger" |
| 154 | + message="Delete project {name}" |
| 155 | + buttonIcon="trash" |
| 156 | + label="Delete" |
| 157 | + callbackAction={() => handleDeleteProject(id)} |
| 158 | + /> |
| 159 | + </td> |
| 160 | + </tr> |
| 161 | + {/each} |
| 162 | + {/key} |
| 163 | + </tbody> |
| 164 | + </table> |
167 | 165 | </div> |
168 | 166 |
|
169 | 167 | <Modal |
|
0 commit comments