|
1 | 1 | @use(App\Classes\LDAP\Attribute\Binary\JpegPhoto) |
2 | 2 | @use(App\Classes\LDAP\Attribute\ObjectClass) |
| 3 | +@use(App\Classes\LDAP\Attribute\UserCertificate) |
3 | 4 | @php($clone=FALSE) |
4 | 5 | <span class="p-0 m-0"> |
5 | 6 | @if($o->is_rdn) |
6 | 7 | <button class="btn btn-sm btn-outline-focus mt-3" disabled><i class="fas fa-fw fa-exchange"></i> @lang('Rename')</button> |
7 | 8 | @elseif($edit && $o->can_addvalues) |
8 | 9 | @switch(get_class($o)) |
9 | | - @case(JpegPhoto::class) |
10 | | - <span @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name_lc }}" disabled><i class="fas fa-fw fa-plus"></i> @lang('Upload JpegPhoto')</span> |
11 | | - |
12 | | - @break |
13 | | - |
14 | 10 | @case(ObjectClass::class) |
15 | 11 | <span type="button" @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) data-bs-toggle="modal" data-bs-target="#new_objectclass-modal"><i class="fas fa-fw fa-plus"></i> @lang('Add Objectclass')</span> |
16 | 12 |
|
@@ -216,6 +212,36 @@ function process_oc() { |
216 | 212 | @append |
217 | 213 | @break |
218 | 214 |
|
| 215 | + @case(JpegPhoto::class) |
| 216 | + <span @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-upload" disabled><i class="fas fa-fw fa-file-arrow-up"></i> @lang('Upload JpegPhoto')</span> |
| 217 | + @section('page-scripts') |
| 218 | + <script type="text/javascript"> |
| 219 | + $(document).ready(function() { |
| 220 | + $('#{{ $o->name }}-upload.addable').click(function(e) { |
| 221 | + alert('Sorry, not implemented yet'); |
| 222 | + e.preventDefault(); |
| 223 | + return false; |
| 224 | + }); |
| 225 | + }); |
| 226 | + </script> |
| 227 | + @append |
| 228 | + @break |
| 229 | + |
| 230 | + @case(UserCertificate::class) |
| 231 | + <span @class(['btn','btn-sm','btn-outline-primary','mt-3','addable','d-none'=>(! $new)]) id="{{ $o->name }}-replace" disabled><i class="fas fa-fw fa-certificate"></i> @lang('Replace Certificate')</span> |
| 232 | + @section('page-scripts') |
| 233 | + <script type="text/javascript"> |
| 234 | + $(document).ready(function() { |
| 235 | + $('#{{ $o->name }}-replace.addable').click(function(e) { |
| 236 | + alert('Sorry, not implemented yet'); |
| 237 | + e.preventDefault(); |
| 238 | + return false; |
| 239 | + }); |
| 240 | + }); |
| 241 | + </script> |
| 242 | + @append |
| 243 | + @break |
| 244 | + |
219 | 245 | <!-- All other attributes --> |
220 | 246 | @default |
221 | 247 | @php($clone=TRUE) |
|
0 commit comments