Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
b6733754
Commit
b6733754
authored
3 years ago
by
Michaela Brückner
Committed by
André Noack
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Erweiterung der Anmelderegel "Veranstaltungsbezogene Anmeldung" re #87
parent
4df9f170
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/admission/rule/save.php
+9
-9
9 additions, 9 deletions
app/views/admission/rule/save.php
lib/admissionrules/coursememberadmission/templates/configure.php
+23
-19
23 additions, 19 deletions
...issionrules/coursememberadmission/templates/configure.php
with
32 additions
and
28 deletions
app/views/admission/rule/save.php
+
9
−
9
View file @
b6733754
<div
class=
"hover_box admissionrule"
id=
"rule_
<?=
$rule
->
getId
()
?>
"
>
<div
class=
"hover_box admissionrule"
id=
"rule_
<?=
$rule
->
getId
()
?>
"
>
<
span
id=
"rule_data_
<?=
$rule
->
getId
()
?>
"
>
<
div
id=
"rule_data_
<?=
$rule
->
getId
()
?>
"
class=
"col-3"
style=
"margin-top: unset"
>
<?=
$rule
->
toString
()
?>
<?=
$rule
->
toString
()
?>
<input
type=
"hidden"
name=
"rules[]"
value=
"
<?=
htmlReady
(
ObjectBuilder
::
exportAsJson
(
$rule
))
?>
"
/>
<input
type=
"hidden"
name=
"rules[]"
value=
"
<?=
htmlReady
(
ObjectBuilder
::
exportAsJson
(
$rule
))
?>
"
/>
</
span
>
</
div
>
<
span
class=
"action_icons"
id=
"rule_actions_
<?=
$rule
->
getId
()
?>
"
>
<
div
class=
"action_icons
col-1
"
id=
"rule_actions_
<?=
$rule
->
getId
()
?>
"
style=
"margin-top: unset"
>
<a
href=
"#"
onclick=
"return STUDIP.Admission.configureRule('
<?=
get_class
(
$rule
)
?>
', '
<?=
<a
href=
"#"
onclick=
"return STUDIP.Admission.configureRule('
<?=
get_class
(
$rule
)
?>
', '
<?=
$controller
->
url_for
(
'admission/rule/configure'
,
get_class
(
$rule
),
$rule
->
getId
())
?>
', '
<?=
$controller
->
url_for
(
'admission/rule/configure'
,
get_class
(
$rule
),
$rule
->
getId
())
?>
', '
<?=
$rule
->
getId
()
?>
')"
>
$rule
->
getId
()
?>
')"
>
<?=
Icon
::
create
(
'edit'
,
'clickable'
)
->
asImg
();
?>
</a>
<?=
Icon
::
create
(
'edit'
,
'clickable'
)
->
asImg
();
?>
</a>
<a
href=
"#"
onclick=
"return STUDIP.Dialogs.showConfirmDialog('
<?=
<a
href=
"#"
onclick=
"return STUDIP.Dialogs.showConfirmDialog('
<?=
_
(
'Soll die Anmelderegel wirklich gelöscht werden?'
)
?>
',
_
(
'Soll die Anmelderegel wirklich gelöscht werden?'
)
?>
',
'javascript:STUDIP.Admission.removeRule(\'rule_
<?=
$rule
->
getId
()
?>
\', \'rules\')')"
>
'javascript:STUDIP.Admission.removeRule(\'rule_
<?=
$rule
->
getId
()
?>
\', \'rules\')')"
>
<?=
Icon
::
create
(
'trash'
,
'clickable'
)
->
asImg
();
?>
</a>
<?=
Icon
::
create
(
'trash'
,
'clickable'
)
->
asImg
();
?>
</a>
</
span
>
</
div
>
</div>
</div>
This diff is collapsed.
Click to expand it.
lib/admissionrules/coursememberadmission/templates/configure.php
+
23
−
19
View file @
b6733754
...
@@ -38,32 +38,36 @@
...
@@ -38,32 +38,36 @@
<?=
_
(
'Veranstaltung suchen'
)
?>
:
<?=
_
(
'Veranstaltung suchen'
)
?>
:
</label>
</label>
<div
style=
"display:
inline-block
"
>
<div
style=
"display:
flex; align-items: flex-start; column-gap: 1em; flex-wrap: wrap
"
>
<?=
<?=
QuickSearch
::
get
(
"mandatory_course_id"
,
new
SeminarSearch
(
'number-name-lecturer'
))
QuickSearch
::
get
(
"mandatory_course_id"
,
new
SeminarSearch
(
'number-name-lecturer'
))
->
fireJSFunctionOnSelect
(
'addcourse'
)
->
fireJSFunctionOnSelect
(
'addcourse'
)
->
setInputStyle
(
'flex: 0 0 40%'
)
->
render
();
->
render
();
?>
?>
<?=
Semester
::
getSemesterSelector
(
[
'name'
=>
'search_sem_sem'
],
<div
style=
"flex: 0 0 40%"
>
Semester
::
getIndexById
(
$_SESSION
[
'_default_sem'
],
false
,
!
$GLOBALS
[
'perm'
]
->
have_perm
(
'admin'
)),
<?=
Semester
::
getSemesterSelector
(
'key'
,
[
'name'
=>
'search_sem_sem'
],
false
Semester
::
getIndexById
(
$_SESSION
[
'_default_sem'
],
false
,
!
$GLOBALS
[
'perm'
]
->
have_perm
(
'admin'
)),
)
?>
'key'
,
<br><br>
false
)
?>
</div>
<br/><br/>
<ul>
<ul>
<?
foreach
(
$courses
as
$course
)
:
?>
<?
foreach
(
$courses
as
$course
)
:
?>
<li>
<li>
<input
type=
"hidden"
id=
"
<?=
htmlReady
(
$course
->
id
)
?>
"
<input
type=
"hidden"
id=
"
<?=
htmlReady
(
$course
->
id
)
?>
"
name=
"courses_to_add[
<?=
htmlReady
(
$course
->
id
)
?>
]"
name=
"courses_to_add[
<?=
htmlReady
(
$course
->
id
)
?>
]"
value=
"
<?=
htmlReady
(
$course
->
name
)
?>
"
>
value=
"
<?=
htmlReady
(
$course
->
name
)
?>
"
>
<span>
<?=
htmlReady
(
$course
->
name
)
?>
</span>
<span>
<?=
htmlReady
(
$course
->
name
)
?>
</span>
<a
href=
"#"
onclick=
"return removecourse('
<?=
htmlReady
(
$course
->
id
)
?>
')"
>
<a
href=
"#"
onclick=
"return removecourse('
<?=
htmlReady
(
$course
->
id
)
?>
')"
>
<?=
Icon
::
create
(
'trash'
)
?>
<?=
Icon
::
create
(
'trash'
)
?>
</a>
</a>
</li>
</li>
<?
endforeach
?>
<?
endforeach
?>
</ul>
</ul>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment