Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-helpdesk
Commits
d46361eb
Commit
d46361eb
authored
Oct 20, 2008
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Changes from ITSM po34demo
parent
2f9cbe95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
17 deletions
+15
-17
new.adp
www/new.adp
+1
-1
new.tcl
www/new.tcl
+14
-16
No files found.
www/new.adp
View file @
d46361eb
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<table width="100%">
<table width="100%">
<tr valign="top">
<tr valign="top">
<td width="50%">
<td width="50%">
<%= [im_box_header
$page_title
] %>
<%= [im_box_header
[lang::message::lookup "" intranet-helpdesk.Ticket_Details "Ticket Details"]
] %>
<formtemplate id="ticket"></formtemplate>
<formtemplate id="ticket"></formtemplate>
<%= [im_box_footer] %>
<%= [im_box_footer] %>
<%= [im_component_bay left] %>
<%= [im_component_bay left] %>
...
...
www/new.tcl
View file @
d46361eb
...
@@ -72,6 +72,7 @@ if {![info exists task]} {
...
@@ -72,6 +72,7 @@ if {![info exists task]} {
# ------------------------------------------------------------------
# ------------------------------------------------------------------
set
current_user_id
[
ad_maybe_redirect_for_registration
]
set
current_user_id
[
ad_maybe_redirect_for_registration
]
set
user_id
$current
_user_id
set
current_url
[
im_url_with_query
]
set
current_url
[
im_url_with_query
]
set
action_url
"/intranet-helpdesk/new"
set
action_url
"/intranet-helpdesk/new"
set
focus
"ticket.var_name"
set
focus
"ticket.var_name"
...
@@ -130,6 +131,9 @@ if {[exists_and_not_null ticket_id]} {
...
@@ -130,6 +131,9 @@ if {[exists_and_not_null ticket_id]} {
# The base form. Define this early so we can extract the form status
# The base form. Define this early so we can extract the form status
# ---------------------------------------------
# ---------------------------------------------
set
title_label
[
lang::message::lookup
{}
intranet-helpdesk.Name
{
Title
}]
set
title_help
[
lang::message::lookup
{}
intranet-helpdesk.Title_Help
{
Please enter a descriptive name for the new ticket.
}]
set
actions
{}
set
actions
{}
if
{[
im_permission
$current
_user_id add_tickets_for_customer
]}
{
lappend actions
{
"Edit"
edit
}
}
if
{[
im_permission
$current
_user_id add_tickets_for_customer
]}
{
lappend actions
{
"Edit"
edit
}
}
if
{[
im_permission
$current
_user_id add_tickets_for_customer
]}
{
lappend actions
{
"Delete"
delete
}
}
if
{[
im_permission
$current
_user_id add_tickets_for_customer
]}
{
lappend actions
{
"Delete"
delete
}
}
...
@@ -141,7 +145,14 @@ ad_form \
...
@@ -141,7 +145,14 @@ ad_form \
-actions
$actions
\
-actions
$actions
\
-has_edit 1
\
-has_edit 1
\
-mode
$form
_mode
\
-mode
$form
_mode
\
-export
{
next_url return_url
}
-export
{
next_url return_url
}
\
-form
{
ticket_id:key
{
ticket_name:text
(
text
)
{
label
$title
_label
}
{
html
{
size 50
}}
{
help_text
$title
_help
}
}
{
ticket_nr:text
(
hidden
)
,optional
}
{
start_date:date
(
hidden
)
,optional
}
{
end_date:date
(
hidden
)
,optional
}
}
# ------------------------------------------------------------------
# ------------------------------------------------------------------
...
@@ -301,21 +312,6 @@ if {"new" == $ticket_customer_contact_id && $user_can_create_new_customer_contac
...
@@ -301,21 +312,6 @@ if {"new" == $ticket_customer_contact_id && $user_can_create_new_customer_contac
ad_returnredirect
$new
_customer_contact_url
ad_returnredirect
$new
_customer_contact_url
}
}
# ------------------------------------------------------------------
# Build the form
# ------------------------------------------------------------------
set
title_label
[
lang::message::lookup
{}
intranet-helpdesk.Name
{
Title
}]
set
title_help
[
lang::message::lookup
{}
intranet-helpdesk.Title_Help
{
Please enter a descriptive name for the new ticket.
}]
set
ticket_elements
[
list
]
lappend
ticket_elements ticket_id:key
lappend
ticket_elements
{
ticket_name:text
(
text
)
{
label
$title
_label
}
{
html
{
size 50
}}
{
help_text
$title
_help
}
}
lappend
ticket_elements
{
ticket_nr:text
(
hidden
)
,optional
}
lappend
ticket_elements
{
start_date:date
(
hidden
)
,optional
}
lappend
ticket_elements
{
end_date:date
(
hidden
)
,optional
}
# ------------------------------------------------------------------
# ------------------------------------------------------------------
# Form options
# Form options
# ------------------------------------------------------------------
# ------------------------------------------------------------------
...
@@ -340,6 +336,8 @@ set customer_contact_options [linsert $customer_contact_options 0 [list "" ""]]
...
@@ -340,6 +336,8 @@ set customer_contact_options [linsert $customer_contact_options 0 [list "" ""]]
# Check permission if the user is allowed to create a ticket for somebody else
# Check permission if the user is allowed to create a ticket for somebody else
# ------------------------------------------------------------------
# ------------------------------------------------------------------
set
ticket_elements
[
list
]
if
{[
im_permission
$current
_user_id add_tickets_for_customers
]}
{
if
{[
im_permission
$current
_user_id add_tickets_for_customers
]}
{
lappend ticket_elements
{
ticket_sla_id:text
(
select
)
{
label
"
[
lang::message::lookup
{}
intranet-helpdesk.SLA SLA
]
"
}
{
options
$customer
_sla_options
}}
lappend ticket_elements
{
ticket_sla_id:text
(
select
)
{
label
"
[
lang::message::lookup
{}
intranet-helpdesk.SLA SLA
]
"
}
{
options
$customer
_sla_options
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment